-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (44 loc) · 1.17 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (44 loc) · 1.17 KB
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
45
46
47
48
49
50
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.15.8
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
files: sphinx_needs/.*
args: []
additional_dependencies:
- sphinx==7.4.7
- docutils==0.20
- jsonschema-rs==0.37.1
- types-docutils==0.20.0.20240201
- types-requests
- minijinja~=2.15
# 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