forked from osbuild/cockpit-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
49 lines (43 loc) · 1.17 KB
/
.flake8
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
[flake8]
# Specify the number of subprocesses that Flake8 will use to run checks in parallel.
jobs = auto
# Print the total number of errors.
count = True
# Print the source code generating the error/warning in question.
show-source = True
# Count the number of occurrences of each error/warning code and print a report.
statistics = True
exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
bots,
test/common
# Set the maximum length that any line (with some exceptions) may be.
max-line-length = 100
# Set the maximum allowed McCabe complexity value for a block of code.
max-complexity = 10
# ERROR CODES
#
# E/W - PEP8 errors/warnings (pycodestyle)
# F - linting errors (pyflakes)
# C - McCabe complexity error (mccabe)
#
# F401 - Module imported but unused
# C901 - Function is too complex
# E501 - Line too long > 80 characters
# Specify a list of codes to ignore.
ignore =
C901,
E501
# Per file ignore
per-file-ignores =
test/verify/composerlib.py:F401
test/verify/parent.py:E501
# Specify the list of error codes you wish Flake8 to report.
select =
E,
W,
F,
C