forked from MantisAI/nervaluate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (38 loc) · 884 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
43 lines (38 loc) · 884 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [-t, py38, -l 120]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [ python ]
args: [--rcfile=pylint.cfg]
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [ python ]
args: [--config=setup.cfg]
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
language_version: python3.8
types: [python]
exclude: examples|tests
require_serial: true # use require_serial so that script is only called once per commit
verbose: true # print the number of files as a sanity-check
args: [--config, setup.cfg]