generated from bessagroup/bessa-pypi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
56 lines (41 loc) · 1.57 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
[flake8]
# Configuration compatible with Bessa Research Group Python Coding Style
#
# Version: March 8, 2023
# >>> UPDATE ACCORDING WITH YOUR PYTHON PROJECT
# Exclude (additional) glob patterns from checks:
extend-exclude =
docs/
tests/
# <<< 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.
# E731: Lambda expression
# C901: McCabe complexity for a block of code
# Remark: You may use this to check your code complexity though!
extend-ignore = E226, E3, E731, C901
# 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
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: E402