Skip to content

Commit 614dd71

Browse files
committed
add precommit file that is the same as napari repo
1 parent f23e9ac commit 614dd71

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.pre-commit-config.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
exclude: _vendor|vendored
2+
repos:
3+
- repo: https://github.com/astral-sh/ruff-pre-commit
4+
rev: v0.9.9
5+
hooks:
6+
- id: ruff-format
7+
exclude: examples
8+
- id: ruff
9+
# args:
10+
# - "--unsafe-fixes"
11+
- repo: https://github.com/seddonym/import-linter
12+
rev: v2.2
13+
hooks:
14+
- id: import-linter
15+
stages: [manual]
16+
- repo: https://github.com/python-jsonschema/check-jsonschema
17+
rev: 0.31.2
18+
hooks:
19+
- id: check-github-workflows
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v5.0.0
22+
# .py files are skipped cause already checked by other hooks
23+
hooks:
24+
- id: check-yaml
25+
- id: check-toml
26+
- id: check-merge-conflict
27+
exclude: .*\.py
28+
- id: end-of-file-fixer
29+
exclude: .*\.py
30+
- id: trailing-whitespace
31+
# trailing whitespace has meaning in markdown https://www.markdownguide.org/hacks/#indent-tab
32+
exclude: .*\.py|.*\.md
33+
- id: mixed-line-ending
34+
exclude: .*\.py

0 commit comments

Comments
 (0)