junifer/.pre-commit-config.yaml

51 lines
1.5 KiB
YAML

ci:
autofix_prs: false
autoupdate_commit_msg: "chore: bump pre-commit repositories"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
types_or: [python, jupyter]
exclude: ^(__init__.py)
args: [--output-format, grouped, --show-fixes]
- id: ruff-format
types_or: [python, jupyter]
exclude: ^(__init__.py)
args: [--check, --diff]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
exclude: ^(.github/|docs/)
args: [--toml, pyproject.toml]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-no-eval
- id: python-no-log-warn
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://code.forgejo.org/forgejo/runner
rev: v11.1.1
hooks:
- id: forgejo-runner-validate