|
1 | 1 | repos: |
2 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v4.0.1 |
4 | | - hooks: |
5 | | - - id: check-docstring-first |
6 | | - - id: end-of-file-fixer |
7 | | - - id: trailing-whitespace |
8 | | - - repo: https://github.com/asottile/setup-cfg-fmt |
9 | | - rev: v1.20.0 |
10 | | - hooks: |
11 | | - - id: setup-cfg-fmt |
12 | | - - repo: https://github.com/PyCQA/flake8 |
13 | | - rev: 4.0.1 |
14 | | - hooks: |
15 | | - - id: flake8 |
16 | | - additional_dependencies: [flake8-typing-imports>=1.9.0] |
17 | | - - repo: https://github.com/myint/autoflake |
18 | | - rev: v1.4 |
19 | | - hooks: |
20 | | - - id: autoflake |
21 | | - args: ["--in-place", "--remove-all-unused-imports"] |
22 | | - - repo: https://github.com/PyCQA/isort |
23 | | - rev: 5.10.1 |
24 | | - hooks: |
25 | | - - id: isort |
| 2 | +# - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | +# rev: v4.0.1 |
| 4 | +# hooks: |
| 5 | +# - id: check-docstring-first |
| 6 | +# - id: end-of-file-fixer |
| 7 | +# - id: trailing-whitespace |
| 8 | +# - repo: https://github.com/asottile/setup-cfg-fmt |
| 9 | +# rev: v1.20.0 |
| 10 | +# hooks: |
| 11 | +# - id: setup-cfg-fmt |
| 12 | +# - repo: https://github.com/PyCQA/flake8 |
| 13 | +# rev: 4.0.1 |
| 14 | +# hooks: |
| 15 | +# - id: flake8 |
| 16 | +# additional_dependencies: [flake8-typing-imports>=1.9.0] |
| 17 | +# - repo: https://github.com/myint/autoflake |
| 18 | +# rev: v1.4 |
| 19 | +# hooks: |
| 20 | +# - id: autoflake |
| 21 | +# args: ["--in-place", "--remove-all-unused-imports"] |
| 22 | +# - repo: https://github.com/PyCQA/isort |
| 23 | +# rev: 5.10.1 |
| 24 | +# hooks: |
| 25 | +# - id: isort |
| 26 | + - repo: https://github.com/charliermarsh/ruff-pre-commit |
| 27 | + # Ruff version. |
| 28 | + rev: 'v0.0.257' |
| 29 | + hooks: |
| 30 | + - id: ruff |
| 31 | + args: [ --fix, --exit-non-zero-on-fix ] |
26 | 32 | - repo: https://github.com/psf/black |
27 | | - rev: 21.11b1 |
| 33 | + rev: 22.3.0 |
28 | 34 | hooks: |
29 | 35 | - id: black |
30 | | - - repo: https://github.com/asottile/pyupgrade |
31 | | - rev: v2.29.1 |
32 | | - hooks: |
33 | | - - id: pyupgrade |
34 | | - args: [--py38-plus, --keep-runtime-typing] |
| 36 | + args: [--line-length=79] |
| 37 | +# - repo: https://github.com/asottile/pyupgrade |
| 38 | +# rev: v2.29.1 |
| 39 | +# hooks: |
| 40 | +# - id: pyupgrade |
| 41 | +# args: [--py38-plus, --keep-runtime-typing] |
35 | 42 | - repo: https://github.com/tlambert03/napari-plugin-checks |
36 | | - rev: v0.2.0 |
| 43 | + rev: v0.3.0 |
37 | 44 | hooks: |
38 | 45 | - id: napari-plugin-checks |
39 | 46 | # https://mypy.readthedocs.io/en/stable/introduction.html |
|
0 commit comments