-
Notifications
You must be signed in to change notification settings - Fork 31
/
.flake8
63 lines (47 loc) · 1.53 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
[flake8]
# Configuration compatible with Bessa Research Group Python Coding Style
#
# Version: December 6, 2022
# >>> UPDATE ACCORDING WITH YOUR PYTHON PROJECT
# Exclude (additional) glob patterns from checks:
extend-exclude =
.tox,
__pycache__,
dist,
build,
data,
*.egg,
docs,
tests
.git
studies
examples
# <<< UPDATE ACCORDING WITH YOUR PYTHON PROJECT
# Print the total number of errors
count = True
# Set the maximum length that any line may be
max-line-length = 79
# Set the maximum length that a comment or docstring line may be
max-doc-length = 79
# Set the number of spaces used for indentation
indent-size = 4
# Print the source code generating the error/warning in question
show-source = True
# Set the maximum allowed McCabe complexity for a block of code
max-complexity = 15
# List of (additional) codes to ignore:
# E3: Blank lines
# Remark: Use the appropriate delimiters if not following PEP8!
# E226: Missing whitespace around arithmetic operator
# Remark: Flake8 does not distinguish +, - from *, /, ** cases yet.
extend-ignore = E226, E3
# List of (additional) error codes to check:
# E241 : Multiple spaces after ‘,’
# E242 : Tab after ‘,’
# E704 : Multiple statements on one line (def)
# W504 : Line break after binary operator
# W505 : Doc line too long (82 > 79 characters)
extend-select = E241, E242, E704, W504, W505
# Ignore all errors F401 ('imported but unused') and E402 ('module level import
# not at top of file') in __init__.py files
per-file-ignores = __init__.py: F401, E402