-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.52 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
exclude: resources
- id: trailing-whitespace
exclude: resources
- id: check-toml
exclude: resources
- id: check-yaml
exclude: resources
- id: fix-encoding-pragma
exclude: resources
- id: mixed-line-ending
exclude: resources
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: [ --config=pyproject.toml ]
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln
args: [ --config=pyproject.toml ]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
files: "\\.(py)$"
args: [ --settings-path=pyproject.toml ]
- repo: local
hooks:
- id: mypy
name: mypy
language: system
entry: mypy
args: [ marl_classification, tests, --config-file=pyproject.toml ]
types: [ python ]
pass_filenames: false
require_serial: true
- id: pylint
name: pylint
language: system
entry: pylint
args: [ marl_classification, tests, --rcfile, pyproject.toml ]
types: [ python ]
pass_filenames: false
require_serial: true
- id: pytest
name: pytest
language: system
entry: python
args: [ "-m", "pytest", "tests" ]
pass_filenames: false
require_serial: true