2021-12-20 22:57:27 +00:00
|
|
|
---
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-12-24 01:03:43 +00:00
|
|
|
rev: v4.4.0
|
2021-12-20 22:57:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
2022-12-24 01:03:43 +00:00
|
|
|
- repo: https://github.com/hadialqattan/pycln
|
|
|
|
rev: v2.1.2
|
|
|
|
hooks:
|
|
|
|
- id: pycln
|
|
|
|
args: [--config=pyproject.toml]
|
2021-12-20 22:57:27 +00:00
|
|
|
- repo: https://github.com/asottile/reorder_python_imports
|
2022-12-24 01:03:43 +00:00
|
|
|
rev: v3.9.0
|
2021-12-20 22:57:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: reorder-python-imports
|
|
|
|
args: ["--application-directories", "canaille"]
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-12-24 01:03:43 +00:00
|
|
|
rev: v3.3.1
|
2021-12-20 22:57:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2021-12-31 17:53:52 +00:00
|
|
|
args: ["--py37-plus"]
|
2021-12-20 22:57:27 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2022-12-24 01:03:43 +00:00
|
|
|
rev: 22.12.0
|
2021-12-20 22:57:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/rtts/djhtml
|
2022-12-24 01:03:43 +00:00
|
|
|
rev: v1.5.2
|
2021-12-20 22:57:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
|
|
|
args: ["--in-place"]
|