forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (43 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (43 loc) · 1.09 KB
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
repos:
- repo: local
hooks:
- id: cleanup-code
name: Clean up code (autoflake, autopep8, black)
entry: bash scripts/tools/cleanup_code.sh
language: system
types: [python]
pass_filenames: true
stages: [commit]
- repo: https://github.com/ambv/black
rev: 24.8.0
hooks:
- id: black
language_version: python3.9
args: ['--check', '--diff', '--verbose']
verbose: true
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--profile=black', '--verbose']
verbose: true
- repo: https://github.com/pycqa/flake8
rev: 3.8.2
hooks:
- id: flake8
args: ['--config=.flake8', '--verbose']
verbose: true
- repo: https://github.com/pycqa/pylint
rev: v3.3.6
hooks:
- id: pylint
args:
[
'--rcfile=.pylintrc',
'--output-format=colorized',
'--score=y',
'--fail-under=7.5',
'--verbose'
]
language_version: python3.9
verbose: true