-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flake8
112 lines (80 loc) · 2.59 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[flake8]
################### PROGRAM ################################
# Specify the number of subprocesses that Flake8 will use to run checks in parallel.
jobs = auto
################### OUTPUT #################################
########## VERBOSITY ##########
# Increase the verbosity of Flake8’s output.
verbose = 0
# Decrease the verbosity of Flake8’s output.
quiet = 0
########## FORMATTING ##########
# Select the formatter used to display errors to the user.
format = default
# 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
########## TARGETS ##########
# Redirect all output to the specified file.
output-file = .flake8.log
# Also print output to stdout if output-file has been configured.
tee = True
######################## FILE PATTERNS #####################
# Provide a comma-separated list of glob patterns to exclude from checks.
exclude =
# git folder
.git,
# github actions folder
.github,
# python cache
__pycache__,
# virtual environment
venv,
# project misc
assets,
data,
# only test src and test directories
#filename =
# src/*.py,
# tests/*.py
################### LINTING ################################
########## OPTIONS ##########
# Report all errors, even if it is on the same line as a `# NOQA` comment.
disable-noqa = False
# Set the maximum length that any line (with some exceptions) may be.
max-line-length = 120
# Set the maximum allowed McCabe complexity value for a block of code.
max-complexity = 10
# Toggle whether pycodestyle should enforce matching the indentation of the opening bracket’s line.
# incluences E131 and E133
hang-closing = False
########## RULES ##########
# ERROR CODES
#
# E/W - PEP8 errors/warnings (pycodestyle)
# F - linting errors (pyflakes)
# C - McCabe complexity error (mccabe)
#
# W503 - line break before binary operator
# Specify a list of codes to ignore.
ignore =
W503,
F841 test/*.py # ignores unused variables in tests
F401 */__init__.py # ignores unused imports in __init__ files
# Specify the list of error codes you wish Flake8 to report.
select =
E,
W,
F,
C
# Enable off-by-default extensions.
enable-extensions =
########## DOCSTRING ##########
# Enable PyFlakes syntax checking of doctests in docstrings.
doctests = True
# Specify which files are checked by PyFlakes for doctest syntax.
include-in-doctest = src/*.py
# Specify which files are not to be checked by PyFlakes for doctest syntax.