-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
82 lines (80 loc) · 2.25 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
default_language_version:
python: python3.9
repos:
- repo: local
hooks:
- id: jupyter-nb-clear-output
name: jupyter-nb-clear-output
files: \.ipynb$
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: [
"--py3-plus",
"--py36-plus",
"--py37-plus",
"--py38-plus",
"--py39-plus",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=775"]
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--config", "pyproject.toml"]
files: (climetlab_maelstrom_power_production|tests)
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- id: isort
name: isort (cython)
types: [cython]
- id: isort
name: isort (pyi)
types: [pyi]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
files: (climetlab_maelstrom_power_production|tests)
args: ["--config", "pyproject.toml"]
additional_dependencies: [
Flake8-pyproject,
flake8-bandit,
flake8-blind-except,
flake8-builtins,
flake8-bugbear,
flake8-comprehensions,
flake8-eradicate,
flake8-mutable,
flake8-pytest-style,
pep8-naming,
pydocstyle
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
files: climetlab_maelstrom_power_production
args: ["--config-file", "pyproject.toml"]
additional_dependencies: [xarray, pandas]