-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.flake8
85 lines (83 loc) · 1.82 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
[flake8]
# Feeling lost? These codes come from a variety of flake8 and plugins:
# B - bugbear
# C - either flake8-coding or flake8-commas or flake8-comprehensions
# D - flake8-docstrings, which is a flake8 plugin
# DAR - darglint
# E - mostly from pycodestyle, with E999 coming from flake8 instead
# F - pyflakes, but written by flake8 (look for their meaning in flake8 docs)
# N - flake8-naming
# RST - flak8-rst-docstrings
# S - bandit
# W - pycodestyle
#
# For more of them, look at
# https://flakes.orsinium.dev/
# https://github.com/DmytroLitvinov/awesome-flake8-extensions
select =
B,
B9,
C,
D,
DAR,
E,
F,
N,
RST,
S,
W
# temporary ignore those codes
ignore =
# missing docstring in public module
D100
# missing docstring in public class
D101,
# missing docstring in public methods
D102,
# missing docstring in public function
D103,
# Missing docstring in __init__
D104,
# Missing docstring in public nested class
D106,
# Missing docstring in public package
D107,
# First word of first line should be capitalized
D403,
# First line of docstring should end with period, ? or !
D415,
# docstring missing a parameter
DAR101,
# docstirng missing a return
DAR201,
# line too long
E501,
# block quote ends without blank line
RST201,
# definition list ends without blank line
RST203,
# unexpected indentation
RST301,
# line break before binary operator
W503,
max-line-length = 120
max-complexity = 10
docstring-convention = google
per-file-ignores =
# assert used (comes from bandit)
tests/*:S101
exclude=
.nox/
.venv/
.pytest_cache/
.dist/
docker/
__pycache__/
rst-roles =
class,
const,
func,
meth,
mod,
ref
rst-directives = deprecated