-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
72 lines (68 loc) · 1.93 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
72 lines (68 loc) · 1.93 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
66
67
68
69
70
71
72
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
files: ^(solarwindpy|tests|\.claude)/.*\.py$
exclude: \.claude/templates/.*\.py$
- id: check-merge-conflict
files: ^(solarwindpy|tests|\.claude)/.*\.py$
exclude: \.claude/templates/.*\.py$
- id: check-added-large-files
args: [--maxkb=5000]
files: ^(solarwindpy|tests|\.claude)/.*\.py$
exclude: \.claude/templates/.*\.py$
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
files: ^(solarwindpy|tests|\.claude)/.*\.py$
exclude: \.claude/templates/.*\.py$
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
files: ^(solarwindpy|tests|\.claude)/.*\.py$
exclude: \.claude/templates/.*\.py$
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
name: doc8 - Documentation linter
args: ['--max-line-length=100', '--quiet']
files: \.(py|rst|md)$
exclude: |
(?x)^(
docs/build/|
docs/_build/|
\.claude/templates/
)$
- repo: local
hooks:
- id: check-conventional-commits
name: Check Conventional Commits
entry: scripts/check_conventional_commits.sh
language: system
stages: [commit-msg]
- id: solarwindpy-physics
name: SolarWindPy Physics Validation
entry: .claude/hooks/pre-commit-tests.sh
language: system
files: \.py$
pass_filenames: false
- id: import-test
name: Import Testing
entry: python -c
args: ["import solarwindpy; print('✓ Import successful')"]
language: system
files: ^solarwindpy/.*\.py$
pass_filenames: false
- id: attribution-reminder
name: Attribution Guidelines Reminder
entry: bash -c
args: ['echo "📝 Remember: External code needs attribution - see .claude/docs/ATTRIBUTION.md"; exit 0']
language: system
stages: [commit]
pass_filenames: false
always_run: true
verbose: true