-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (70 loc) · 2.01 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (70 loc) · 2.01 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: set-test-env
name: set-test-env
entry: make set-test
language: system
pass_filenames: false
always_run: true
verbose: true
- repo: https://github.com/odwyersoftware/brunette
rev: 0.2.0
hooks:
- id: brunette
name: brunette
description: Run Brunette on Python code (fork of Black).
entry: brunette
language: python
types: [python]
- repo: https://github.com/pycqa/isort
rev: 5.7.0
hooks:
- id: isort
name: isort
types: [python]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: check-added-large-files
args: ["--maxkb=500"]
- id: sort-simple-yaml
- id: requirements-txt-fixer
- id: check-json
- repo: local
hooks:
# HACK:
# raise E0401, R0801 warning when run remote pylint repository
# refers: https://github.com/pre-commit/pre-commit-hooks/issues/157
- id: pylint
name: pylint
entry: pylint src
language: system
pass_filenames: false
always_run: true
types: [python]
verbose: true
# HACK:
# impossible to use a remote pytest for pre-commit.
# because remote repository must contains `.pre-commit-hooks.yaml` for pre-commit
# but, currently(2021.03.13) pytest repository does not have `.pre-commit-hooks.yaml`
- id: pytest
name: pytest
entry: pytest --cov=src
language: system
pass_filenames: false
always_run: true
verbose: true
- id: clean
name: clean
entry: make clean
language: system