Skip to content

Commit 900fc33

Browse files
authored
Merge pull request #1953 from EliahKagan/pre-commit
Update and adjust pre-commit hooks
2 parents b630eaf + cae0d87 commit 900fc33

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.pre-commit-config.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
repos:
22
- repo: https://github.com/codespell-project/codespell
3-
rev: v2.2.4
3+
rev: v2.3.0
44
hooks:
55
- id: codespell
66
additional_dependencies: [tomli]
7-
# args: ["--write-changes"] # consider enabling for auto-fif
8-
exclude: "test/fixtures/"
7+
exclude: ^test/fixtures/
98

109
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.4.3
10+
rev: v0.6.0
1211
hooks:
1312
- id: ruff
1413
args: ["--fix"]
@@ -17,22 +16,23 @@ repos:
1716
exclude: ^git/ext/
1817

1918
- repo: https://github.com/shellcheck-py/shellcheck-py
20-
rev: v0.9.0.6
19+
rev: v0.10.0.1
2120
hooks:
2221
- id: shellcheck
2322
args: [--color]
2423
exclude: ^test/fixtures/polyglot$|^git/ext/
2524

2625
- repo: https://github.com/pre-commit/pre-commit-hooks
27-
rev: v4.5.0
26+
rev: v4.6.0
2827
hooks:
2928
- id: end-of-file-fixer
30-
exclude: test/fixtures/
29+
exclude: ^test/fixtures/|COPYING|LICENSE
30+
- id: check-symlinks
3131
- id: check-toml
3232
- id: check-yaml
3333
- id: check-merge-conflict
3434

3535
- repo: https://github.com/abravalheri/validate-pyproject
36-
rev: v0.16
36+
rev: v0.19
3737
hooks:
38-
- id: validate-pyproject
38+
- id: validate-pyproject

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ lint.unfixable = [
8484

8585

8686
[tool.codespell]
87-
ignore-words-list="gud,doesnt"
87+
ignore-words-list="afile,assertIn,doesnt,gud,uptodate"
8888
#count = true
8989
quiet-level = 3

0 commit comments

Comments
 (0)