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

35 lines
994 B
YAML
Raw Normal View History

2021-12-20 22:57:27 +00:00
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-11-29 15:46:28 +00:00
rev: v4.5.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
2023-08-17 08:03:10 +00:00
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
2021-12-20 22:57:27 +00:00
- id: end-of-file-fixer
2023-08-17 08:03:10 +00:00
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
2023-04-15 11:15:54 +00:00
- id: check-toml
2023-05-25 11:37:58 +00:00
- repo: https://github.com/astral-sh/ruff-pre-commit
2023-11-29 15:46:28 +00:00
rev: 'v0.1.6'
hooks:
2023-05-25 11:37:58 +00:00
- id: ruff
2023-06-03 09:52:27 +00:00
args: [--fix, --exit-non-zero-on-fix]
2021-12-20 22:57:27 +00:00
- repo: https://github.com/asottile/reorder_python_imports
2023-11-29 15:46:28 +00:00
rev: v3.12.0
2021-12-20 22:57:27 +00:00
hooks:
- id: reorder-python-imports
args: ["--application-directories", "canaille"]
- repo: https://github.com/asottile/pyupgrade
2023-11-29 15:46:28 +00:00
rev: v3.15.0
2021-12-20 22:57:27 +00:00
hooks:
- id: pyupgrade
2023-06-03 13:37:24 +00:00
args: ["--py38-plus"]
2021-12-20 22:57:27 +00:00
- repo: https://github.com/psf/black
2023-11-29 15:46:28 +00:00
rev: 23.11.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