generated from OpenRail-Playground/template-dreilaenderhack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
70 lines (62 loc) · 1.74 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
59
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: local
hooks:
- id: poetry-check
name: poetry-check
description: run poetry check to validate config
entry: poetry check
language: system
pass_filenames: false
files: (^|/)pyproject.toml$
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: python
exclude: .parquet$
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: python
exclude: '^(.*parquet|tests\/fixtures\/.*)$'
- id: reorder-python-imports
name: reorder-python-imports
entry: reorder-python-imports
language: python
files: '\.py$'
args: ['--application-directories', 'src:tests']
- id: black
name: black
entry: black
language: python
files: '\.py$'
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: python
files: '\.py$'
exclude: '^tests\/|experiments\/'
- id: pylint
name: pylint
entry: env PYTHONPATH='src/blp/:tests/blp/' pylint
language: system
require_serial: true
types: [python]
pass_filenames: false
files: '\.py$'
args:
[
'src', 'tests',
'-rn', # Only display messages
'-sn', # Don't display the score
]
verbose: true
- id: pyre
name: pyre
entry: pyre check
pass_filenames: false
language: python
- id: unit-test-run
name: unit-test-run
entry: coverage run -m unittest -k blp
pass_filenames: false
language: system