-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (34 loc) · 998 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (34 loc) · 998 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-check
files: ^(src/pynxtools|tests)/.*\.py$
- id: ruff-format
files: ^(src/pynxtools|tests)/.*\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy # static type checking
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.1
hooks:
- id: pyupgrade
args: [--py36-plus] # modernizes syntax for Python 3.6+
- repo: https://github.com/kynan/nbstripout
rev: 0.9.0
hooks:
- id: nbstripout # removes notebook outputs before committing
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.6.0
hooks:
- id: cspell # spellchecking
pass_filenames: false
args:
- --config
- cspell.json
- README.md
- CITATION.cff
- docs/**/*
- src/pynxtools/**/*.py
- tests/**/*.py