| 1 |
repos: |
| 2 |
- repo: meta |
| 3 |
hooks: |
| 4 |
- id: check-hooks-apply |
| 5 |
- id: check-useless-excludes |
| 6 |
|
| 7 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 8 |
# Ruff version. |
| 9 |
rev: v0.14.2 |
| 10 |
hooks: |
| 11 |
- id: ruff-check |
| 12 |
# We exclude all __init__.py files, since we use wildcard imports, etc. |
| 13 |
exclude: '^brian2/tests/.*$|^brian2/.*__init__[.]py$' |
| 14 |
files: '^brian2/.*\.pyi?$' |
| 15 |
args: ['--fix'] |
| 16 |
- id: ruff-format |
| 17 |
files: '^brian2/.*\.pyi?$' |
| 18 |
|
| 19 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 20 |
rev: v6.0.0 |
| 21 |
hooks: |
| 22 |
- id: check-toml |
| 23 |
- id: check-yaml |
| 24 |
- id: end-of-file-fixer |
| 25 |
exclude: codemeta.json # json.dump does not add a newline at the end |
| 26 |
- id: trailing-whitespace |
| 27 |
|
| 28 |
- repo: https://github.com/mpalmer/action-validator |
| 29 |
rev: v0.7.0 |
| 30 |
hooks: |
| 31 |
- id: action-validator |