-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.1 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: |
(?x)^(
\.napari-hub/.*|
docs/.*|
.*\.md
)$
# exclude: ^\.napari-hub/.* | docs/.*
- id: check-yaml # checks for correct yaml syntax for github actions ex.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.11.0
hooks:
- id: ruff # Run the linter
types_or: [ python, pyi ]
args: [ --fix, --show-fixes ]
- id: ruff-format # Run the formatter
types_or: [ python, pyi ]
# - repo: https://github.com/psf/black
# rev: 25.1.0
# hooks:
# - id: black
- repo: https://github.com/tlambert03/napari-plugin-checks
rev: v0.3.0
hooks:
- id: napari-plugin-checks
# https://mypy.readthedocs.io/en/stable/introduction.html
# you may wish to add this as well!
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910-1
# hooks:
# - id: mypy