|
1 | 1 | repos: |
2 | | - - hooks: |
3 | | - - args: |
4 | | - - --fix |
5 | | - id: ruff-check |
6 | | - - id: ruff-format |
7 | | - repo: https://github.com/astral-sh/ruff-pre-commit |
8 | | - rev: v0.14.10 |
9 | | - - hooks: |
10 | | - - args: |
11 | | - - --upgrade |
12 | | - id: uv-lock |
13 | | - repo: https://github.com/astral-sh/uv-pre-commit |
14 | | - rev: 0.9.18 |
15 | | - - hooks: |
16 | | - - args: |
17 | | - - --option |
18 | | - - indent_tables=true |
19 | | - - --option |
20 | | - - indent_entries=true |
21 | | - - --option |
22 | | - - reorder_keys=true |
23 | | - id: taplo-format |
24 | | - repo: https://github.com/compwa/taplo-pre-commit |
25 | | - rev: v0.9.3 |
26 | | - - hooks: |
| 2 | + - repo: https://github.com/dycw/pre-commit-hook-nitpick |
| 3 | + rev: 0.7.3 |
| 4 | + hooks: |
27 | 5 | - args: |
28 | 6 | - --description=Template for Python packages |
| 7 | + - --github--pull-request--pre-commit |
| 8 | + - --github--pull-request--pyright |
| 9 | + - --github--pull-request--pytest--os--macos |
| 10 | + - --github--pull-request--pytest--os--ubuntu |
| 11 | + - --github--pull-request--pytest--python-version--default |
| 12 | + - --github--pull-request--pytest--resolution--highest |
| 13 | + - --github--pull-request--ruff |
29 | 14 | - --github--push--tag |
30 | | - - --package-name=dycw-template |
| 15 | + - --package-name=dycw-template-python |
31 | 16 | - --pre-commit--prettier |
32 | 17 | - --pre-commit--ruff |
33 | 18 | - --pre-commit--taplo |
34 | 19 | - --pre-commit--uv |
35 | 20 | - --pyproject |
36 | 21 | - --pyright |
37 | | - - --pyright--include=src |
38 | 22 | - --pytest |
39 | | - - --pytest--test-paths=src/tests |
40 | | - - --python-package-name=template_python |
41 | 23 | - --readme |
42 | 24 | - --repo-name=template-python |
43 | 25 | - --ruff |
44 | 26 | id: nitpick |
45 | | - repo: https://github.com/dycw/pre-commit-hook-nitpick |
46 | | - rev: 0.5.0 |
47 | | - - hooks: |
48 | | - - id: format-requirements |
49 | | - - id: replace-sequence-str |
50 | | - repo: https://github.com/dycw/pre-commit-hooks |
51 | | - rev: 0.13.26 |
52 | | - - hooks: |
| 27 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 28 | + rev: v6.0.0 |
| 29 | + hooks: |
53 | 30 | - id: check-executables-have-shebangs |
54 | 31 | - id: check-merge-conflict |
55 | 32 | - id: check-symlinks |
56 | 33 | - id: destroyed-symlinks |
57 | 34 | - id: detect-private-key |
58 | 35 | - id: end-of-file-fixer |
59 | | - - args: |
| 36 | + - id: mixed-line-ending |
| 37 | + args: |
60 | 38 | - --fix=lf |
61 | | - id: mixed-line-ending |
62 | 39 | - id: no-commit-to-branch |
63 | | - - args: |
| 40 | + - id: pretty-format-json |
| 41 | + args: |
64 | 42 | - --autofix |
65 | | - id: pretty-format-json |
66 | 43 | - id: trailing-whitespace |
67 | | - repo: https://github.com/pre-commit/pre-commit-hooks |
68 | | - rev: v6.0.0 |
69 | | - - hooks: |
70 | | - - entry: npx prettier --write |
71 | | - id: prettier |
72 | | - language: system |
| 44 | + - repo: local |
| 45 | + hooks: |
| 46 | + - id: prettier |
73 | 47 | name: prettier |
| 48 | + entry: npx prettier --write |
| 49 | + language: system |
74 | 50 | types_or: |
75 | 51 | - markdown |
76 | 52 | - yaml |
77 | | - repo: local |
| 53 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 54 | + rev: v0.14.10 |
| 55 | + hooks: |
| 56 | + - id: ruff-check |
| 57 | + args: |
| 58 | + - --fix |
| 59 | + - id: ruff-format |
| 60 | + - repo: https://github.com/compwa/taplo-pre-commit |
| 61 | + rev: v0.9.3 |
| 62 | + hooks: |
| 63 | + - id: taplo-format |
| 64 | + args: |
| 65 | + - --option |
| 66 | + - indent_tables=true |
| 67 | + - --option |
| 68 | + - indent_entries=true |
| 69 | + - --option |
| 70 | + - reorder_keys=true |
| 71 | + - repo: https://github.com/astral-sh/uv-pre-commit |
| 72 | + rev: 0.9.18 |
| 73 | + hooks: |
| 74 | + - id: uv-lock |
| 75 | + args: |
| 76 | + - --upgrade |
0 commit comments