forked from PowerGridModel/power-grid-model-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (38 loc) · 976 Bytes
/
.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
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
#
# SPDX-License-Identifier: MPL-2.0
repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.1
hooks:
- id: reuse
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
additional_dependencies: [numpy, pandas]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
files: ^src/.+\.py$
language: system
types: [ python ]
args: [ "--rcfile=pyproject.toml" ]
require_serial: true
- id: pytest
name: pytest
entry: pytest
language: system
pass_filenames: false
always_run: true
args: [ "--cov-fail-under=99" ]