forked from gothicVI/AndroidDevelopment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (80 loc) · 2.62 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
71
72
73
74
75
76
77
78
79
80
# See https://pre-commit.com/ for documentation
# For installation:
# - install via
# pip install pre-commit
# - activate via
# pre-commit install
# Now the below hooks will run at any invocation of
# git commit
# To check all files in the repositoy run
# pre-commit run --all-files
exclude: \.nb$|\.m$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: mixed-line-ending
- id: trailing-whitespace
types: [text]
exclude: \.dat$|\.in$
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
args:
[
"--config=setup.cfg", # Link to your config file
"--ignore=E265, # block comment should start with ‘# ‘
E266, # too many leading ‘#’ for block comment
E501, # line too long
F401, # Module imported but unused
F403, # 'from module import *' used
W503, # line break before binary operator",
]
- id: pycodestyle
name: pycodestyle
entry: pycodestyle
language: system
types: [python]
args:
[
"--config=setup.cfg", # Link to your config file
# E265 block comment should start with ‘# ‘
# E266 too many leading ‘#’ for block comment
# E501 line too long
# W503 line break before binary operator",
"--ignore=E265,E266,E501,W503,",
]
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: system
types: [python]
args:
[
"--config=setup.cfg", # Link to your config file
# D100 Missing docstring in public module
# D101 Missing docstring in public class
# D102 Missing docstring in public method
# D103 Missing docstring in public function",
"--ignore=D100,D101,D102,D103,D212,",
]
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=pylintrc", # Link to your config file
"--disable=line-too-long,wildcard-import,unused-wildcard-import,missing-module-docstring,missing-function-docstring",
]