-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
47 lines (43 loc) · 1.09 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
[flake8]
# ANN : flake8-annotations warnings
# B,B9 : flake8-bugbear
# BLK : black
# C : mccabe checks code complexity
# D : flake8-docstrings warnings
# DAR : darglint warnings
# F : pyflakes errors
# I : import-order warnings
# W,E : pycodestyle (pep8) warnings and errors
select = ANN,B,B9,BLK,I,C,D,DAR,E,F,W
max-complexity = 10
ignore =
# *args and **kwargs annotations can be ignored
ANN002,
ANN003,
# Missing type annotation for self and cls
ANN101,
ANN102,
# Missing type annotation for init
ANN204,
# Dynamically typed expressions (typing.Any) are disallowed
ANN401,
# Function is too complex
C901,
# Missing docstring in public module
D100,
# Missing docstring in public package
D104,
# Line break before binary operator, ignore 503 and use 504
W503,
D101,
D102
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203
max-line-length = 95
# import order
import-order-style = google
# docstrings
docstring-convention = google
# local
application-import-names = onemod