2022-01-26 12:07:03 +01:00
|
|
|
exclude: \.min\.(js|css)(\.map)?$
|
2021-05-29 13:41:25 +02:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-01-26 12:07:03 +01:00
|
|
|
rev: v4.1.0
|
2021-05-29 13:41:25 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
2022-01-26 12:07:03 +01:00
|
|
|
- id: check-json
|
2021-05-29 13:41:25 +02:00
|
|
|
- id: check-toml
|
2022-01-26 12:07:03 +01:00
|
|
|
- id: check-xml
|
2021-05-29 13:41:25 +02:00
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
2022-01-26 12:07:03 +01:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: debug-statements
|
|
|
|
- id: detect-private-key
|
2021-05-29 13:41:25 +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
|
2022-01-26 12:07:03 +01:00
|
|
|
rev: 5.10.1
|
2021-05-29 13:41:25 +02:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
2022-03-25 19:57:42 +01:00
|
|
|
rev: 22.1.0
|
2021-05-29 13:41:25 +02:00
|
|
|
hooks:
|
2022-01-26 12:07:03 +01:00
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-03-25 19:57:42 +01:00
|
|
|
rev: v2.31.1
|
2022-01-26 12:07:03 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args:
|
|
|
|
- --py310-plus
|
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
|
|
rev: 1.4.0
|
|
|
|
hooks:
|
|
|
|
- id: django-upgrade
|
2022-03-25 19:57:42 +01:00
|
|
|
args: [--target-version, "4.0"]
|
2022-01-26 12:07:03 +01:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
2022-03-25 19:57:42 +01:00
|
|
|
rev: v1.5.0
|
2022-01-26 12:07:03 +01:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
|
|
|
- repo: https://github.com/flakeheaven/flakeheaven
|
|
|
|
rev: 0.11.0
|
|
|
|
hooks:
|
|
|
|
- id: flakeheaven
|
|
|
|
additional_dependencies:
|
|
|
|
- flake8-annotations-complexity
|
|
|
|
- flake8-bandit
|
|
|
|
- flake8-builtins
|
|
|
|
- flake8-bugbear
|
|
|
|
- flake8-comprehensions
|
|
|
|
- flake8-docstrings
|
|
|
|
- flake8-eradicate
|
|
|
|
- flake8-noqa
|
|
|
|
- pep8-naming
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2022-03-25 19:57:42 +01:00
|
|
|
rev: v2.6.1
|
2022-01-26 12:07:03 +01:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [javascript, css]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2022-03-25 19:57:42 +01:00
|
|
|
rev: v8.11.0
|
2022-01-26 12:07:03 +01:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
types_or: [javascript, css]
|
|
|
|
additional_dependencies:
|
|
|
|
- eslint@^7.29.0
|
|
|
|
- eslint-config-prettier@^8.3.0
|