forked from napari/weather-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (33 loc) · 924 Bytes
/
.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
exclude: _vendor|vendored
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- id: ruff
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/seddonym/import-linter
rev: v2.1
hooks:
- id: import-linter
stages: [manual]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.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