2022-07-04 16:01:04 +02:00
|
|
|
exclude: "(migrations|static/node_modules|static/assets|static/vendor)"
|
|
|
|
default_language_version:
|
|
|
|
python: python3
|
2020-03-15 19:16:00 +01:00
|
|
|
repos:
|
2022-07-04 16:01:04 +02:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.2.0
|
2020-03-15 19:16:00 +01:00
|
|
|
hooks:
|
2022-07-04 16:01:04 +02:00
|
|
|
- id: check-yaml
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
2024-08-28 13:07:34 +02:00
|
|
|
rev: v1.34.1
|
2022-07-04 16:01:04 +02:00
|
|
|
hooks:
|
|
|
|
- id: djlint-jinja
|
|
|
|
files: '.*\.html'
|
|
|
|
entry: djlint --reformat
|
2023-11-21 16:42:18 +01:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
|
|
|
rev: v0.1.5
|
|
|
|
hooks:
|
|
|
|
# Run the linter.
|
|
|
|
- id: ruff
|
|
|
|
args: [ --fix ]
|
|
|
|
# Run the formatter.
|
2024-08-28 13:07:34 +02:00
|
|
|
- id: ruff-format
|