-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (61 loc) · 1.72 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
fail_fast: true
repos:
- repo: local
hooks:
- id: jupyter-nb-clear-output
name: (jupyter-nb-clear-output) Clear jupyter notebook outputs
files: \.ipynb$
stages: [commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
name: (prettier) Reformat YAML files with prettier
types: [yaml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: ["--config", "pyproject.toml", "--fix"]
exclude: ^(tests|scripts|notebooks|quadra/utils/tests)/
- id: ruff-format
types_or: [python, pyi, jupyter]
args: ["--config", "pyproject.toml"]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [
"--rcfile=pylintrc", # Link to your config file
]
exclude: ^(tests|scripts|notebooks)/
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
args:
[
"--non-interactive",
"--install-types",
"--follow-imports=silent",
"--ignore-missing-imports",
"--config-file=pyproject.toml",
]
exclude: ^(tests|scripts|notebooks|quadra/utils/tests)/
- repo: local
hooks:
- id: interrogate
name: (interrogate) docstring coverage
language: python
types: [python]
pass_filenames: false
entry: interrogate