2021-12-27 22:57:05 +01:00
|
|
|
exclude: (\.min\.(js|css)(\.map)?$|/vendor/)
|
2020-08-14 14:53:30 +02:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-12-28 22:31:53 +01:00
|
|
|
rev: v4.1.0
|
2020-08-14 14:53:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-json
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: check-toml
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-xml
|
2020-11-24 22:11:13 +01:00
|
|
|
- id: check-yaml
|
2021-02-06 18:07:51 +01:00
|
|
|
args: [--allow-multiple-documents]
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: end-of-file-fixer
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: debug-statements
|
|
|
|
- id: detect-private-key
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: pretty-format-json
|
|
|
|
args:
|
|
|
|
- --autofix
|
|
|
|
- --no-sort-keys
|
|
|
|
- id: trailing-whitespace
|
|
|
|
args:
|
|
|
|
- --markdown-linebreak-ext=md
|
|
|
|
- repo: https://github.com/timothycrosley/isort
|
2021-12-19 20:40:51 +01:00
|
|
|
rev: 5.10.1
|
2020-08-14 14:53:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
2021-12-19 20:40:51 +01:00
|
|
|
rev: 21.12b0
|
2020-08-14 14:53:30 +02:00
|
|
|
hooks:
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2021-12-28 22:31:53 +01:00
|
|
|
rev: v2.30.0
|
2021-12-19 20:40:51 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args:
|
|
|
|
- --py310-plus
|
2021-12-27 22:57:05 +01:00
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
|
|
rev: 1.4.0
|
|
|
|
hooks:
|
|
|
|
- id: django-upgrade
|
|
|
|
args: [--target-version, "4.0"]
|
|
|
|
- repo: https://github.com/rtts/djhtml
|
2021-12-28 22:31:53 +01:00
|
|
|
rev: v1.4.11
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
2021-12-29 14:54:21 +01:00
|
|
|
- repo: https://github.com/mcarans/flakehell
|
|
|
|
rev: 1b84f4dd6c16232b5c0c6206511427676ab55f5b
|
2021-12-19 20:40:51 +01:00
|
|
|
hooks:
|
2021-12-29 14:54:21 +01:00
|
|
|
- id: flakehell
|
2021-12-19 20:40:51 +01:00
|
|
|
additional_dependencies:
|
2021-12-29 10:40:48 +01:00
|
|
|
- flake8-annotations-complexity
|
2021-12-19 20:40:51 +01:00
|
|
|
- flake8-builtins
|
2021-12-29 10:40:48 +01:00
|
|
|
- flake8-bugbear
|
2021-12-19 20:40:51 +01:00
|
|
|
- flake8-comprehensions
|
|
|
|
- flake8-eradicate
|
2021-12-29 10:40:48 +01:00
|
|
|
- flake8-noqa
|
2021-12-27 22:57:05 +01:00
|
|
|
- flake8-pytest-style
|
2021-12-29 10:40:48 +01:00
|
|
|
- flake8-pyi
|
2021-12-29 14:54:21 +01:00
|
|
|
- wemake-python-styleguide
|
2021-12-27 22:57:05 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
rev: v2.5.1
|
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [javascript, css]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2021-12-28 22:31:53 +01:00
|
|
|
rev: v8.5.0
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
args: [--fix]
|
|
|
|
types_or: [javascript, css]
|
|
|
|
additional_dependencies:
|
|
|
|
- eslint@^7.29.0
|
|
|
|
- eslint-config-prettier@^8.3.0
|