-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.flake8
46 lines (44 loc) · 1.18 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
[flake8]
extend-exclude =
.mypy_cache,
.pytest_cache,
.venv,
.vscode,
devtools,
demo_resources,
dist,
requirements,
site-packages
filename =
*.py
*.pyi
doctest = true
max-line-length = 130
extend-ignore =
# E203: whitespace before ':' (Thanks black)
E203
# E266: too many leading '#' for block comment
E266
# E402: module level import not a top of file
E402
# E501: line too long (already have black for that)
E501
# E731: do not assign a lambda expression, use a def
E731
per-file-ignores =
# F401: 'module' imported but unused
# F403: 'from module import *' used; unable to detect undefined names
# F405: 'name' may be undefined, or defined from star imports: 'module'
src/pydiamond/__init__.py:F401
src/pydiamond/*/__init__.py:F401,F403,F405
#### Stub errors ignore ####
# E301,E302: expected 1/2 blank line(s)
# E701: multiple statements on one line
# F821: undefined name (useless for stub files)
src/pydiamond/__init__.pyi:F401
*.pyi:E301,E302,E701,F821
[flake8:local-plugins]
extension =
DAL = flake8_extensions.dunder_all:DunderAll
paths =
./devtools/linting