2022-07-21 12:45:18 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/psf/black
|
2023-02-09 07:20:35 +00:00
|
|
|
rev: 23.1.0
|
2022-07-21 12:45:18 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2022-07-21 12:45:50 +00:00
|
|
|
exclude: ^core/migrations
|
2022-07-21 12:45:18 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-02-09 07:20:35 +00:00
|
|
|
rev: 5.11.5
|
2022-07-21 12:45:18 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2022-07-21 12:51:06 +00:00
|
|
|
args: ["--profile", "black"]
|
2022-07-21 12:45:18 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-02-09 07:20:35 +00:00
|
|
|
rev: 6.0.0
|
2022-07-21 12:45:18 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2022-07-21 12:48:00 +00:00
|
|
|
args: [--max-line-length=88]
|
2022-07-21 12:45:23 +00:00
|
|
|
exclude: ^core/migrations
|
2022-09-05 06:20:30 +00:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
2023-02-09 07:20:35 +00:00
|
|
|
rev: v2.0.0
|
2022-07-21 12:45:50 +00:00
|
|
|
hooks:
|
2022-09-05 06:20:30 +00:00
|
|
|
- id: djhtml
|
2022-09-05 06:20:30 +00:00
|
|
|
args: [-t 2]
|
2022-09-05 06:20:30 +00:00
|
|
|
- id: djcss
|
2022-09-05 06:20:30 +00:00
|
|
|
exclude : ^core/static/css # slow
|
2022-09-05 06:20:30 +00:00
|
|
|
- id: djjs
|
2022-09-05 06:20:30 +00:00
|
|
|
exclude: ^core/static/js # slow
|
2022-11-21 07:20:21 +00:00
|
|
|
- repo: https://github.com/sirwart/ripsecrets.git
|
|
|
|
rev: v0.1.5
|
|
|
|
hooks:
|
|
|
|
- id: ripsecrets
|