Skip to content

Commit 83b8c02

Browse files
authored
Update .pre-commit-config.yaml
1 parent b3c392a commit 83b8c02

File tree

1 file changed

+45
-24
lines changed

1 file changed

+45
-24
lines changed

.pre-commit-config.yaml

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,68 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
55
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
11-
args:
12-
- '--maxkb=100000'
138
- id: fix-byte-order-marker
149
- id: check-case-conflict
15-
- id: check-json
1610
- id: mixed-line-ending
17-
- id: check-ast
1811
- id: check-merge-conflict
12+
- id: check-toml
13+
- id: check-yaml
14+
- id: check-added-large-files
15+
args: [--maxkb=99000]
16+
- id: check-json
17+
- id: forbid-submodules
18+
- id: end-of-file-fixer
19+
- id: debug-statements
20+
- id: check-ast
1921

20-
- repo: 'https://github.com/astral-sh/ruff-pre-commit'
22+
- repo: https://github.com/astral-sh/ruff-pre-commit
2123
rev: v0.14.9
2224
hooks:
2325
- id: ruff
24-
args:
25-
- '--fix'
26+
args: [--fix]
2627
- id: ruff-format
2728

28-
- repo: 'https://github.com/asottile/blacken-docs'
29+
- repo: https://github.com/asottile/blacken-docs
2930
rev: 1.20.0
3031
hooks:
3132
- id: blacken-docs
32-
additional_dependencies:
33-
- black
33+
additional_dependencies: [black]
34+
35+
- repo: https://github.com/Yelp/detect-secrets
36+
rev: v1.5.0
37+
hooks:
38+
- id: detect-secrets
39+
exclude: >
40+
(?x)^(
41+
tests/cassettes/.*|
42+
tests/.*|
43+
uv.lock|
44+
package-lock.json|
45+
\.github/workflows/.*\.yaml
46+
)$
3447
35-
- repo: 'https://github.com/asottile/pyupgrade'
36-
rev: v3.21.2
48+
- repo: https://github.com/codespell-project/codespell
49+
rev: v2.4.0
3750
hooks:
38-
- id: pyupgrade
39-
args:
40-
- '--py37-plus'
51+
- id: codespell
52+
args: [--ignore-words=.codespell-ignore-words.txt]
53+
exclude: >
54+
(?x)^(
55+
tests/cassettes/.*|
56+
uv.lock|
57+
.*package-lock\.json
58+
)$
4159
42-
- repo: 'https://github.com/pre-commit/mirrors-mypy'
43-
rev: v1.19.0
60+
- repo: local
4461
hooks:
45-
- id: mypy
46-
# additional_dependencies:
47-
# - types-requests
62+
- id: pyright
63+
name: pyright
64+
entry: uv run pyright
65+
language: system
66+
types: [python]
67+
exclude: tests/.*
68+
pass_filenames: false

0 commit comments

Comments
 (0)