2020-04-22 13:15:58 +02:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-12-27 18:58:35 +00:00
|
|
|
rev: v4.1.0
|
2020-04-22 13:15:58 +02:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: check-merge-conflict
|
2021-02-09 09:18:33 +01:00
|
|
|
- id: debug-statements
|
2020-04-22 13:15:58 +02:00
|
|
|
- id: mixed-line-ending
|
|
|
|
args: [--fix=lf]
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
2021-08-23 17:40:43 +00:00
|
|
|
rev: v1.26.3
|
2020-04-22 13:15:58 +02:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
2021-02-09 09:18:33 +01:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2021-11-15 18:45:32 +00:00
|
|
|
rev: 5.10.1
|
2021-02-09 09:18:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-01-03 18:58:03 +00:00
|
|
|
rev: v2.31.0
|
2021-02-09 09:18:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py36-plus]
|
|
|
|
- repo: https://github.com/psf/black
|
2021-12-06 19:03:59 +00:00
|
|
|
rev: 21.12b0
|
2021-02-09 09:18:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2021-04-05 16:55:32 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2021-10-11 18:10:48 +00:00
|
|
|
rev: 4.0.1
|
2021-02-09 09:18:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies:
|
|
|
|
- flake8-bugbear
|
|
|
|
- flake8-builtins
|
|
|
|
- flake8-comprehensions
|
|
|
|
- flake8-django
|
|
|
|
- flake8-docstrings
|
|
|
|
- flake8-eradicate
|
|
|
|
- flake8-executable
|
|
|
|
- flake8-logging-format
|
|
|
|
- flake8-mutable
|
|
|
|
- flake8-polyfill
|
|
|
|
- flake8-print
|
|
|
|
- flake8-return
|
|
|
|
- flake8-self
|
|
|
|
- pep8-naming
|
|
|
|
- repo: https://github.com/asottile/blacken-docs
|
2021-11-22 18:56:50 +00:00
|
|
|
rev: v1.12.0
|
2021-02-09 09:18:33 +01:00
|
|
|
hooks:
|
|
|
|
- id: blacken-docs
|
2020-04-22 13:15:58 +02:00
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
|
|
|
- id: check-useless-excludes
|
2020-11-20 09:13:29 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2021-12-06 19:03:59 +00:00
|
|
|
rev: v2.5.1
|
2020-06-30 10:09:23 +02:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|