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:
|
2022-12-24 01:41:26 +00:00
|
|
|
- id: fix-byte-order-marker
|
2021-12-20 22:57:27 +00:00
|
|
|
- id: trailing-whitespace
|
2023-08-17 07:58:49 +00:00
|
|
|
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$"
|
2021-12-20 22:57:27 +00:00
|
|
|
- id: end-of-file-fixer
|
2023-08-17 07:58:49 +00:00
|
|
|
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$"
|
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-08-05 18:19:12 +00:00
|
|
|
rev: 'v0.0.282'
|
2022-12-28 23:41:32 +00:00
|
|
|
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-07-03 20:57:35 +00:00
|
|
|
rev: v3.10.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-07-31 15:13:40 +00:00
|
|
|
rev: v3.10.1
|
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-07-12 19:31:18 +00:00
|
|
|
rev: 23.7.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
|