forked from useblocks/sphinx-needs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (39 loc) · 1.01 KB
/
.pre-commit-config.yaml
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.8.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.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