-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.08 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
# per default we only run over the files in the python package
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
# but no large files anywhere ;)
files: ''
exclude: ".*getting_started.ipynb"
- repo: local
hooks:
- id: ruff_format
name: ruff_format
entry: poetry run ruff format
language: system
types: [python]
- repo: local
hooks:
- id: ruff_check
name: ruff_check
entry: poetry run ruff check
language: system
types: [python]
files: '^cfspopcon/'
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy
language: system
types: [python]
files: '^cfspopcon/'
exclude: ^cfspopcon/plotting
- repo: local
hooks:
- id: check_variables
name: Check variables
entry: poetry run python tests/utils/variable_consistency_checker.py --run
language: system
pass_filenames: false
always_run: true