-
Notifications
You must be signed in to change notification settings - Fork 452
/
Copy path.pre-commit-config.yaml
52 lines (47 loc) · 1.16 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
default_language_version:
python: python3
repos:
- repo: https://github.com/Tribler/mirrors-autoflake
rev: v1.4
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
types: [file, python]
- repo: https://github.com/Tribler/isort
rev: 4.3.21-3-tribler
hooks:
- id: isort
types: [file, python]
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
files: |
(?x)(
^src/tribler-gui/|
^src/tribler-core/tribler_core/modules/metadata_store/|
^src/tribler-common
)
types: [file, python]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.0
hooks:
- id: flake8
types: [file, python]
additional_dependencies: [
'flake8-import-order==0.18.1',
'flake8-print',
]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
files: |
(?x)(
^src/tribler-gui/|
^src/tribler-core/|
^src/tribler-common
)
types: [file, python]