Skip to content

Commit cf277fc

Browse files
authored
Update .pre-commit-config.yaml
1 parent 2483bbb commit cf277fc

1 file changed

Lines changed: 4 additions & 31 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,25 @@
1-
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|drms/extern)$|^CITATION.rst$"
2-
31
repos:
4-
<<<<<<<
5-
=======
62
- repo: https://github.com/zizmorcore/zizmor-pre-commit
73
rev: v1.23.1
84
hooks:
95
- id: zizmor
106
# This should be before any formatting hooks like isort
11-
>>>>>>>
127
- repo: https://github.com/astral-sh/ruff-pre-commit
138
rev: "v0.15.4"
149
hooks:
15-
- id: ruff
16-
<<<<<<<
17-
args: ['--fix', '--unsafe-fixes']
18-
- id: ruff-format
19-
- repo: https://github.com/PyCQA/isort
20-
rev: 8.0.1
21-
hooks:
22-
- id: isort
23-
=======
2410
args: ["--fix"]
2511
types: [python]
2612
# Define here once and then reference using YAML anchor
2713
exclude: &exclude_dirs ^drms/(data|extern)/
28-
>>>>>>>
14+
- id: ruff-format
15+
types: [python]
16+
exclude: *exclude_dirs
2917
- repo: https://github.com/PyCQA/isort
30-
rev: 6.1.0
18+
rev: 8.0.1
3119
hooks:
3220
- id: isort
33-
<<<<<<<
34-
=======
3521
types: [python]
3622
exclude: *exclude_dirs
37-
>>>>>>>
3823
- repo: https://github.com/pre-commit/pre-commit-hooks
3924
rev: v6.0.0
4025
hooks:
@@ -45,10 +30,7 @@ repos:
4530
types: [python]
4631
exclude: *exclude_dirs
4732
- id: trailing-whitespace
48-
<<<<<<<
49-
=======
5033
types_or: [python, rst]
51-
>>>>>>>
5234
- id: check-yaml
5335
types: [yaml]
5436
exclude: *exclude_dirs
@@ -61,25 +43,16 @@ repos:
6143
- id: check-added-large-files
6244
args: ["--enforce-all", "--maxkb=1054"]
6345
- id: end-of-file-fixer
64-
<<<<<<<
65-
=======
6646
types_or: [python, rst]
67-
>>>>>>>
6847
- id: mixed-line-ending
69-
<<<<<<<
70-
=======
7148
types_or: [python, rst]
72-
>>>>>>>
7349
- repo: https://github.com/codespell-project/codespell
7450
rev: v2.4.1
7551
hooks:
7652
- id: codespell
77-
<<<<<<<
78-
=======
7953
args: [ "--write-changes" ]
8054
types_or: [python, rst]
8155
exclude: *exclude_dirs
82-
>>>>>>>
8356
ci:
8457
autofix_prs: false
8558
autoupdate_schedule: "quarterly"

0 commit comments

Comments
 (0)