forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (41 loc) · 1.11 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (41 loc) · 1.11 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
38
39
40
41
exclude: _vendor|vendored
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
# args:
# - "--unsafe-fixes"
- id: ruff-format
exclude: examples
- repo: https://github.com/seddonym/import-linter
rev: v2.11
hooks:
- id: import-linter
stages: [manual]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
# .py files are skipped cause already checked by other hooks
hooks:
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
exclude: .*\.py
- id: end-of-file-fixer
exclude: .*\.py
- id: trailing-whitespace
# trailing whitespace has meaning in markdown https://www.markdownguide.org/hacks/#indent-tab
exclude: .*\.py|.*\.md
- id: mixed-line-ending
exclude: .*\.py
- repo: local
hooks:
- id: check-groups-vs-extras
name: check that all group names in pyproject.toml are in extras
language: python
entry: python tools/check_groups_vs_extras.py
files: ^pyproject.toml$