|
1 | 1 | repos: |
2 | | - - repo: https://github.com/astral-sh/ruff-pre-commit |
3 | | - rev: v0.9.6 |
4 | | - hooks: |
5 | | - - id: ruff |
6 | | - args: [ --fix ] |
7 | | - - id: ruff-format |
| 2 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 3 | + rev: v0.15.0 |
| 4 | + hooks: |
| 5 | + - id: ruff |
| 6 | + args: [--fix] |
| 7 | + - id: ruff-format |
8 | 8 |
|
9 | | - - repo: https://github.com/RobertCraigie/pyright-python |
10 | | - rev: v1.1.394 |
11 | | - hooks: |
12 | | - - id: pyright |
| 9 | + - repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror |
| 10 | + rev: v1.13.0 # or whatever the latest version is at the time |
| 11 | + hooks: |
| 12 | + - id: basedpyright |
13 | 13 |
|
14 | | - - repo: local |
15 | | - hooks: |
16 | | - - id: generate requirements |
17 | | - name: generate requirements |
18 | | - entry: uv export --no-hashes --no-dev -o requirements.txt |
19 | | - language: system |
20 | | - pass_filenames: false |
21 | | - - id: safety |
22 | | - name: safety |
23 | | - entry: uv run safety |
24 | | - language: system |
25 | | - pass_filenames: false |
26 | | - - id: make docs |
27 | | - name: make docs |
28 | | - entry: uv run handsdown --cleanup -o documentation/reference |
29 | | - language: system |
30 | | - pass_filenames: false |
31 | | - - id: build package |
32 | | - name: build package |
33 | | - entry: uv build |
34 | | - language: system |
35 | | - pass_filenames: false |
36 | | - - id: pytest |
37 | | - name: pytest |
38 | | - entry: uv run pytest |
39 | | - language: system |
40 | | - pass_filenames: false |
| 14 | + - repo: local |
| 15 | + hooks: |
| 16 | + - id: generate requirements |
| 17 | + name: generate requirements |
| 18 | + entry: uv export --no-hashes --no-dev -o requirements.txt |
| 19 | + language: system |
| 20 | + pass_filenames: false |
41 | 21 |
|
42 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
43 | | - rev: v5.0.0 |
44 | | - hooks: |
45 | | - - id: trailing-whitespace |
46 | | - - id: end-of-file-fixer |
47 | | - - id: check-case-conflict |
48 | | - - id: check-executables-have-shebangs |
49 | | - - id: check-json |
50 | | - - id: check-merge-conflict |
51 | | - - id: check-shebang-scripts-are-executable |
52 | | - - id: check-symlinks |
53 | | - - id: check-toml |
54 | | - - id: check-vcs-permalinks |
55 | | - - id: check-yaml |
56 | | - - id: detect-private-key |
57 | | - - id: mixed-line-ending |
| 22 | + # - id: make docs |
| 23 | + # name: make docs |
| 24 | + # entry: uv run handsdown --cleanup -o documentation/reference |
| 25 | + # language: system |
| 26 | + # pass_filenames: false |
| 27 | + - id: build package |
| 28 | + name: build package |
| 29 | + entry: uv build |
| 30 | + language: system |
| 31 | + pass_filenames: false |
| 32 | + - id: pytest |
| 33 | + name: pytest |
| 34 | + entry: uv run pytest |
| 35 | + language: system |
| 36 | + pass_filenames: false |
58 | 37 |
|
59 | | - - repo: https://github.com/boidolr/pre-commit-images |
60 | | - rev: v1.8.4 |
61 | | - hooks: |
62 | | - - id: optimize-jpg |
63 | | - - id: optimize-png |
64 | | - - id: optimize-svg |
65 | | - - id: optimize-webp |
| 38 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 39 | + rev: v6.0.0 |
| 40 | + hooks: |
| 41 | + - id: trailing-whitespace |
| 42 | + - id: end-of-file-fixer |
| 43 | + - id: check-case-conflict |
| 44 | + - id: check-executables-have-shebangs |
| 45 | + - id: check-json |
| 46 | + - id: check-merge-conflict |
| 47 | + - id: check-shebang-scripts-are-executable |
| 48 | + - id: check-symlinks |
| 49 | + - id: check-toml |
| 50 | + - id: check-vcs-permalinks |
| 51 | + - id: check-yaml |
| 52 | + - id: detect-private-key |
| 53 | + - id: mixed-line-ending |
| 54 | + |
| 55 | + - repo: https://github.com/boidolr/pre-commit-images |
| 56 | + rev: v1.11.0 |
| 57 | + hooks: |
| 58 | + - id: optimize-jpg |
| 59 | + - id: optimize-png |
| 60 | + - id: optimize-svg |
| 61 | + - id: optimize-webp |
66 | 62 |
|
67 | 63 | exclude: "tests/data|documentation/reference" |
0 commit comments