-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (65 loc) · 1.89 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
65 lines (65 loc) · 1.89 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
types: [ yaml ]
- id: check-toml
types: [ toml ]
- id: check-merge-conflict
- id: check-ast
types: [ python ]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
additional_dependencies: ["validate-pyproject-schema-store[all]"]
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
name: "yapf"
additional_dependencies: [toml]
args: [ '--style', 'pyproject.toml', '--parallel', '--in-place' ]
stages: [ commit ]
types: [ python ]
- id: yapf
name: "yapf (check)"
additional_dependencies: [toml]
args: [ '--style', 'pyproject.toml', '--diff' ]
stages: [ manual ]
types: [ python ]
- repo: https://github.com/pycqa/isort
rev: 9.0.0a3
hooks:
- id: isort
name: isort
stages: [ commit ]
types: [ python ]
- id: isort
name: isort (check)
args: [ '--check-only' ]
stages: [ manual ]
types: [ python ]
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies: [flake8-quotes==3.3.2]
- repo: local
hooks:
- id: install-local-package
name: Install Local Package
entry: uv pip install -e . --offline
language: system
pass_filenames: false
types: [python]
- id: expand-docstr-macros
name: Expand docstring macros
description: "Expand docstring macros in Python files."
args: [ '--verbose', 'v' ]
language: system
types: [python]
stages: [pre-commit]
entry: python .pre-commit-hooks/expand_docstr_macros.py