forked from spacetelescope/jwst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
101 lines (100 loc) · 2.9 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
exclude: ".*\\.asdf$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-yaml
args: ["--unsafe"]
- id: check-toml
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-private-key
# - id: end-of-file-fixer
# - id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.2'
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.0
hooks:
- id: codespell
args: ["--write-changes", "--summary"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1 # Use the latest stable version
hooks:
- id: mypy
- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
hooks:
- id: numpydoc-validation
exclude: |
(?x)^(
jwst/assign_wcs/.* |
jwst/associations/.* |
jwst/background/.* |
jwst/charge_migration/.* |
jwst/combine_1d/.* |
jwst/coron/.* |
jwst/cube_build/.* |
jwst/cube_skymatch/.* |
jwst/dark_current/.* |
jwst/datamodels/.* |
jwst/dq_init/.* |
jwst/emicorr/.* |
jwst/engdblog/.* |
jwst/exp_to_source/.* |
jwst/extract_1d/.* |
jwst/extract_2d/.* |
jwst/firstframe/.* |
jwst/flatfield/.* |
jwst/fringe/.* |
jwst/gain_scale/.* |
jwst/group_scale/.* |
jwst/guider_cds/.* |
jwst/imprint/.* |
jwst/ipc/.* |
jwst/jump/.* |
jwst/lastframe/.* |
jwst/lib/.* |
jwst/linearity/.* |
jwst/master_background/.* |
jwst/model_blender/.* |
jwst/mrs_imatch/.* |
jwst/pathloss/.* |
jwst/persistence/.* |
jwst/photom/.* |
jwst/pipeline/.* |
jwst/ramp_fitting/.* |
jwst/refpix/.* |
jwst/regtest/.* |
jwst/resample/.* |
jwst/reset/.* |
jwst/residual_fringe/.* |
jwst/rscd/.* |
jwst/saturation/.* |
jwst/scripts/.* |
jwst/skymatch/.* |
jwst/spectral_leak/.* |
jwst/srctype/.* |
jwst/stpipe/.* |
jwst/straylight/.* |
jwst/superbias/.* |
jwst/tests/.* |
jwst/tso_photometry/.* |
jwst/wavecorr/.* |
jwst/wfs_combine/.* |
jwst/wfss_contam/.* |
jwst/white_light/.* |
jwst/conftest.py |
.*/tests/.* |
setup.py |
pytest_jwst/.* |
docs/.*
)$