agenda_culturel/.pre-commit-config.yaml
2025-03-24 23:53:20 +01:00

28 lines
752 B
YAML

default_language_version:
python: python3
repos:
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.9
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.32.0
hooks:
- id: djlint-reformat-django
- id: djlint-django