-
Notifications
You must be signed in to change notification settings - Fork 7
/
.flake8
40 lines (40 loc) · 1.13 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
[flake8]
max-line-length = 120
max-doc-length = 100
select = B,C,E,F,W,Y,SIM
ignore =
# E203: whitespace before ':'
# W503: line break before binary operator
# W504: line break after binary operator
# E704: multiple statements on one line (def)
# format by black
E203,W503,W504,E704
# E501: line too long
# W505: doc line too long
# too long docstring due to long example blocks
E501,W505,
per-file-ignores =
# F401: module imported but unused
# intentionally unused imports
__init__.py: F401
# E402: module level import not at top of file
# intentionally import after function declarations
# F811: redefinition of unused function
# intentionally shown how the function works
optree/typing.py:E402,F811
# E301: expected 1 blank line
# E302: expected 2 blank lines
# E305: expected 2 blank lines after class or function definition
# E701: multiple statements on one line (colon)
# format by black
*.pyi: E301,E302,E305,E701
exclude =
.git,
.vscode,
venv,
third-party,
__pycache__,
docs/source/conf.py,
build,
dist,
tests