forked from equinor/ecalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (44 loc) · 1.27 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
# using default_language_version
# to avoid issues with RH 7
default_language_version:
node: 16.15.1
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.276'
hooks:
- id: ruff
files: ^src/.*\.py$
exclude: gen/|\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist
args:
- --fix
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
args: ['--line-length=120', '--include=\.pyi?$']
exclude: gen/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
files: ^(src/ecalc/libraries/)
exclude: tests|conftest.py
args: ['--config-file=./pyproject.toml']
additional_dependencies:
- types-PyYAML
- pydantic==1.10.9
- numpy
- types-requests
- pandas-stubs
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.5.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
exclude: tests|neqsim|fixtures|conftest