canaille-globuzma/.pre-commit-config.yaml

36 lines
876 B
YAML
Raw Normal View History

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: fix-byte-order-marker
2021-12-20 22:57:27 +00:00
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/autoflake
2023-03-14 11:08:37 +00:00
rev: v2.0.2
hooks:
- id: autoflake
2022-12-24 01:03:43 +00:00
- repo: https://github.com/hadialqattan/pycln
2023-03-14 11:08:37 +00:00
rev: v2.1.3
2022-12-24 01:03:43 +00:00
hooks:
- id: pycln
2023-04-09 00:13:34 +00:00
args: [--all]
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
2023-04-09 00:13:34 +00:00
rev: 23.3.0
2021-12-20 22:57:27 +00:00
hooks:
- id: black
- repo: https://github.com/rtts/djhtml
2023-04-09 00:13:34 +00:00
rev: 3.0.6
2021-12-20 22:57:27 +00:00
hooks:
- id: djhtml