|
13 | 13 | - id: name-tests-test |
14 | 14 | args: ["--pytest-test-first"] |
15 | 15 | - id: trailing-whitespace |
16 | | - exclude: "tests/references/*" |
| 16 | + exclude: "tests/references/.*" |
17 | 17 |
|
18 | 18 | # - repo: https://github.com/hakancelik96/unimport |
19 | 19 | # rev: 0.14.1 |
@@ -49,96 +49,97 @@ repos: |
49 | 49 | - id: pyupgrade |
50 | 50 | args: [--py37-plus, --keep-runtime-typing] |
51 | 51 |
|
52 | | - # - repo: https://github.com/codespell-project/codespell |
53 | | - # rev: 68ea3cff5eba266e0814794cce6cd19537f58137 |
54 | | - # hooks: |
55 | | - # - id: codespell |
56 | | - # args: ["-L TE,TE/TM,te,ba,FPR,fpr_spacing,ro,donot"] |
| 52 | + # - repo: https://github.com/codespell-project/codespell |
| 53 | + # rev: 68ea3cff5eba266e0814794cce6cd19537f58137 |
| 54 | + # hooks: |
| 55 | + # - id: codespell |
| 56 | + # args: ["-L TE,TE/TM,te,ba,FPR,fpr_spacing,ro,donot"] |
57 | 57 |
|
58 | | - # - repo: https://github.com/shellcheck-py/shellcheck-py |
59 | | - # rev: 953faa6870f6663ac0121ab4a800f1ce76bca31f |
60 | | - # hooks: |
61 | | - # - id: shellcheck |
| 58 | + # - repo: https://github.com/shellcheck-py/shellcheck-py |
| 59 | + # rev: 953faa6870f6663ac0121ab4a800f1ce76bca31f |
| 60 | + # hooks: |
| 61 | + # - id: shellcheck |
62 | 62 |
|
63 | | - # - repo: https://github.com/pre-commit/pygrep-hooks |
64 | | - # rev: 7b4409161486c6956bb3206ce96db5d56731b1b9 # Use the ref you want to point at |
65 | | - # hooks: |
66 | | - # - id: python-use-type-annotations |
| 63 | + # - repo: https://github.com/pre-commit/pygrep-hooks |
| 64 | + # rev: 7b4409161486c6956bb3206ce96db5d56731b1b9 # Use the ref you want to point at |
| 65 | + # hooks: |
| 66 | + # - id: python-use-type-annotations |
67 | 67 |
|
68 | | - # - repo: https://github.com/PyCQA/bandit |
69 | | - # rev: fe1361fdcc274850d4099885a802f2c9f28aca08 |
70 | | - # hooks: |
71 | | - # - id: bandit |
72 | | - # args: [--exit-zero] |
73 | | - # # ignore all tests, not just tests data |
74 | | - # exclude: ^tests/ |
75 | | - # - repo: https://github.com/pre-commit/mirrors-mypy |
76 | | - # rev: "v1.0.1" |
77 | | - # hooks: |
78 | | - # - id: mypy |
79 | | - # exclude: ^(docs/|example-plugin/|tests/fixtures) |
80 | | - # additional_dependencies: |
81 | | - # - "pydantic" |
82 | | - # - repo: https://github.com/terrencepreilly/darglint |
83 | | - # rev: master |
84 | | - # hooks: |
85 | | - # - id: darglint |
86 | | - # - repo: https://github.com/pycqa/pydocstyle |
87 | | - # rev: "a6fe4222012e990042c86cdaaa904a8d059752ee" |
88 | | - # hooks: |
89 | | - # - id: pydocstyle |
90 | | - # additional_dependencies: ["pydocstyle[toml]"] |
91 | | - # - repo: https://github.com/asottile/reorder_python_imports |
92 | | - # rev: 2b2f0c74acdb3de316e23ceb7dd0d7945c354050 |
93 | | - # hooks: |
94 | | - # - id: reorder-python-imports |
95 | | - # - repo: https://github.com/PyCQA/pylint |
96 | | - # rev: v2.14.1 |
97 | | - # hooks: |
98 | | - # - id: pylint |
99 | | - # args: [--exit-zero] |
100 | | - # - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
101 | | - # rev: 6565d773ca281682d7062d4c0be74538cc474cc9 |
102 | | - # hooks: |
103 | | - # - id: pretty-format-java |
104 | | - # args: [--autofix] |
105 | | - # - id: pretty-format-kotlin |
106 | | - # args: [--autofix] |
107 | | - # - id: pretty-format-yaml |
108 | | - # args: [--autofix, --indent, "2"] |
109 | | - # - repo: https://github.com/adrienverge/yamllint.git |
110 | | - # rev: v1.21.0 # or higher tag |
111 | | - # hooks: |
112 | | - # - id: yamllint |
113 | | - # args: [--format, parsable, --strict] |
114 | | - # - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt |
115 | | - # rev: 0.1.0 # or specific tag |
116 | | - # hooks: |
117 | | - # - id: yamlfmt |
118 | | - # - repo: https://github.com/pre-commit/pygrep-hooks |
119 | | - # rev: "f6fb13e9516d1a9720a30a4049c930235abd642e" |
120 | | - # hooks: |
121 | | - # - id: python-check-blanket-noqa |
122 | | - # - id: python-check-blanket-type-ignore |
123 | | - # - id: python-no-log-warn |
124 | | - # - id: python-no-eval |
125 | | - # - id: python-use-type-annotations |
126 | | - # - id: rst-backticks |
127 | | - # - id: rst-directive-colons |
128 | | - # - id: rst-inline-touching-normal |
129 | | - # - repo: https://github.com/nbQA-dev/nbQA |
130 | | - # rev: 952c895a21aced4601165c43f77188559a5e825c |
131 | | - # hooks: |
132 | | - # - id: nbqa-black |
133 | | - # additional_dependencies: [jupytext, black] # optional, only if you're using Jupytext |
134 | | - # - id: nbqa-pyupgrade |
135 | | - # args: ["--py37-plus"] |
136 | | - # - id: nbqa-flake8 |
137 | | - # - id: nbqa-isort |
138 | | - # args: ["--float-to-top"] |
139 | | - - repo: https://github.com/charliermarsh/ruff-pre-commit |
140 | | - rev: "6a0ba1854991b693612486cc84a2254de82d071d" |
| 68 | + # - repo: https://github.com/PyCQA/bandit |
| 69 | + # rev: fe1361fdcc274850d4099885a802f2c9f28aca08 |
| 70 | + # hooks: |
| 71 | + # - id: bandit |
| 72 | + # args: [--exit-zero] |
| 73 | + # # ignore all tests, not just tests data |
| 74 | + # exclude: ^tests/ |
| 75 | + # - repo: https://github.com/pre-commit/mirrors-mypy |
| 76 | + # rev: "v1.0.1" |
| 77 | + # hooks: |
| 78 | + # - id: mypy |
| 79 | + # exclude: ^(docs/|example-plugin/|tests/fixtures) |
| 80 | + # additional_dependencies: |
| 81 | + # - "pydantic" |
| 82 | + # - repo: https://github.com/terrencepreilly/darglint |
| 83 | + # rev: master |
| 84 | + # hooks: |
| 85 | + # - id: darglint |
| 86 | + # - repo: https://github.com/pycqa/pydocstyle |
| 87 | + # rev: "a6fe4222012e990042c86cdaaa904a8d059752ee" |
| 88 | + # hooks: |
| 89 | + # - id: pydocstyle |
| 90 | + # additional_dependencies: ["pydocstyle[toml]"] |
| 91 | + # - repo: https://github.com/asottile/reorder_python_imports |
| 92 | + # rev: 2b2f0c74acdb3de316e23ceb7dd0d7945c354050 |
| 93 | + # hooks: |
| 94 | + # - id: reorder-python-imports |
| 95 | + # - repo: https://github.com/PyCQA/pylint |
| 96 | + # rev: v2.14.1 |
| 97 | + # hooks: |
| 98 | + # - id: pylint |
| 99 | + # args: [--exit-zero] |
| 100 | + # - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks |
| 101 | + # rev: 6565d773ca281682d7062d4c0be74538cc474cc9 |
| 102 | + # hooks: |
| 103 | + # - id: pretty-format-java |
| 104 | + # args: [--autofix] |
| 105 | + # - id: pretty-format-kotlin |
| 106 | + # args: [--autofix] |
| 107 | + # - id: pretty-format-yaml |
| 108 | + # args: [--autofix, --indent, "2"] |
| 109 | + # - repo: https://github.com/adrienverge/yamllint.git |
| 110 | + # rev: v1.21.0 # or higher tag |
| 111 | + # hooks: |
| 112 | + # - id: yamllint |
| 113 | + # args: [--format, parsable, --strict] |
| 114 | + # - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt |
| 115 | + # rev: 0.1.0 # or specific tag |
| 116 | + # hooks: |
| 117 | + # - id: yamlfmt |
| 118 | + # - repo: https://github.com/pre-commit/pygrep-hooks |
| 119 | + # rev: "f6fb13e9516d1a9720a30a4049c930235abd642e" |
| 120 | + # hooks: |
| 121 | + # - id: python-check-blanket-noqa |
| 122 | + # - id: python-check-blanket-type-ignore |
| 123 | + # - id: python-no-log-warn |
| 124 | + # - id: python-no-eval |
| 125 | + # - id: python-use-type-annotations |
| 126 | + # - id: rst-backticks |
| 127 | + # - id: rst-directive-colons |
| 128 | + # - id: rst-inline-touching-normal |
| 129 | + # - repo: https://github.com/nbQA-dev/nbQA |
| 130 | + # rev: 952c895a21aced4601165c43f77188559a5e825c |
| 131 | + # hooks: |
| 132 | + # - id: nbqa-black |
| 133 | + # additional_dependencies: [jupytext, black] # optional, only if you're using Jupytext |
| 134 | + # - id: nbqa-pyupgrade |
| 135 | + # args: ["--py37-plus"] |
| 136 | + # - id: nbqa-flake8 |
| 137 | + # - id: nbqa-isort |
| 138 | + # args: ["--float-to-top"] |
| 139 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 140 | + rev: v0.13.1 |
141 | 141 | hooks: |
142 | | - - id: ruff |
| 142 | + - id: ruff-check |
| 143 | + args: [--fix] |
143 | 144 |
|
144 | 145 | exclude: tests/generate_references.py |
0 commit comments