-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (41 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (41 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# - id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.5
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: local
hooks:
- id: ty-check
name: run ty static type checking
files: ^src/
entry: uv run ty check
language: python
types: [python]
pass_filenames: false
- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
hooks:
- id: numpydoc-validation
files: ^src/
exclude: ^(tests/|.*__init__\.py$)
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0
hooks:
- id: sphinx-lint
- repo: https://github.com/to-sta/spdx-checker-pre-commit
rev: 0.1.8
hooks:
- id: spdx-license-checker
name: run spdx-checker license check
exclude: ^(?:.*/)?__init__\.py$
args: [-l, GPL-3.0-or-later, --fix, --continue-on-error]
types_or: [python]