34 lines
901 B
YAML
34 lines
901 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: pretty-format-json
|
|
args: ['--autofix']
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: debug-statements
|
|
- id: check-docstring-first
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.1.8
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
args: [--fix]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.7.1
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies: [types-all]
|
|
args: [--ignore-missing-imports, --no-strict-optional]
|
|
exclude: ^(tests/|web/) |