1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
repos:
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
files: sphinx_needs/.*
args: []
additional_dependencies:
- sphinx==7.4.7
- docutils==0.20
- types-docutils==0.20.0.20240201
- types-jsonschema
- types-requests
# TODO this does not work on pre-commit.ci
# - repo: https://github.com/astral-sh/uv-pre-commit
# rev: 0.5.5
# hooks:
# - id: uv-lock # Update the uv lockfile
- repo: local
hooks:
- id: check-readme
name: check-readme
files: README.rst
language: python
entry: rst2html.py README.rst --halt=warning
pass_filenames: false
additional_dependencies:
- docutils==0.20.1
- pygments
|