| 1 |
# See https://pre-commit.com for more information |
| 2 |
# See https://pre-commit.com/hooks.html for more hooks |
| 3 |
repos: |
| 4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 |
rev: v6.0.0 |
| 6 |
hooks: |
| 7 |
- id: trailing-whitespace |
| 8 |
- id: end-of-file-fixer |
| 9 |
- id: check-yaml |
| 10 |
- id: check-added-large-files |
| 11 |
args: ['--maxkb=3000'] |
| 12 |
- id: check-docstring-first |
| 13 |
- id: debug-statements |
| 14 |
- id: check-toml |
| 15 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 16 |
# Ruff version. |
| 17 |
rev: 'v0.16.5' |
| 18 |
hooks: |
| 19 |
# Run the linter. |
| 20 |
- id: ruff |
| 21 |
args: [ --fix ] |
| 22 |
# Run the formatter. |
| 23 |
- id: ruff-format |
| 24 |
|
| 25 |
- repo: https://github.com/pre-commit/mirrors-mypy |
| 26 |
rev: v2.3.1 |
| 27 |
hooks: |
| 28 |
- id: mypy |