|
1 | 1 | # See https://pre-commit.com for more information |
2 | 2 | # See https://pre-commit.com/hooks.html for more hooks |
3 | 3 | repos: |
4 | | - - repo: 'https://github.com/pre-commit/pre-commit-hooks' |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
5 | 5 | rev: v6.0.0 |
6 | 6 | hooks: |
7 | 7 | - id: trailing-whitespace |
8 | | - - id: end-of-file-fixer |
9 | | - - id: check-yaml |
10 | | - - id: check-added-large-files |
11 | | - args: |
12 | | - - '--maxkb=100000' |
13 | 8 | - id: fix-byte-order-marker |
14 | 9 | - id: check-case-conflict |
15 | | - - id: check-json |
16 | 10 | - id: mixed-line-ending |
17 | | - - id: check-ast |
18 | 11 | - 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 |
19 | 21 |
|
20 | | - - repo: 'https://github.com/astral-sh/ruff-pre-commit' |
| 22 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
21 | 23 | rev: v0.14.9 |
22 | 24 | hooks: |
23 | 25 | - id: ruff |
24 | | - args: |
25 | | - - '--fix' |
| 26 | + args: [--fix] |
26 | 27 | - id: ruff-format |
27 | 28 |
|
28 | | - - repo: 'https://github.com/asottile/blacken-docs' |
| 29 | + - repo: https://github.com/asottile/blacken-docs |
29 | 30 | rev: 1.20.0 |
30 | 31 | hooks: |
31 | 32 | - 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 | + )$ |
34 | 47 |
|
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 |
37 | 50 | 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 | + )$ |
41 | 59 |
|
42 | | - - repo: 'https://github.com/pre-commit/mirrors-mypy' |
43 | | - rev: v1.19.0 |
| 60 | + - repo: local |
44 | 61 | 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