-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.34 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-docstring-first
description: Checks that code is placed after the docstring
# TODO: uncomment the following when pre-commit-hooks v4.7.0 is released!
# - id: check-illegal-windows-names
# description: Prevents the use of filenames that are incompatible with Windows
- id: end-of-file-fixer
description: Ensures files end in a newline.
- id: trailing-whitespace
description: Trims trailing whitespace.
exclude: ^\.napari-hub/.*
- id: check-yaml # checks for correct yaml syntax for github actions ex.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.2
hooks:
- id: ruff
description: Linter. Fixes style and syntax problems.
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
description: Style of Python code that aims to reduce git diffs.
- repo: https://github.com/tlambert03/napari-plugin-checks
rev: v0.3.0
hooks:
- id: napari-plugin-checks
description: Checks PyQT5/PySide2 import/requirements.txt is correct.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
description: Adds type checking without running the program (static).