Newer
Older
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: trailing-whitespace
- id: check-yaml
args: [--allow-multiple-documents]
- id: mixed-line-ending
- id: name-tests-test
args: ['--django']
- id: check-json
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/codespell-project/codespell
args:
- --write-changes
- --exclude-file=LICENCE
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/executablebooks/mdformat
exclude: tests/data/analyze|tests/data/evaluate/.*.md
# Optionally add plugins
additional_dependencies:
- mdformat-mkdocs[recommended]