forked from LazyAGI/LazyLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.flake8
More file actions
26 lines (25 loc) · 942 Bytes
/
.flake8
File metadata and controls
26 lines (25 loc) · 942 Bytes
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
[flake8]
exclude = tests/legacy,venv
per-file-ignores =
./docs/add_docstrings.py: E402
docs/scripts/lazynote/*: Q000, Q001, Q002
examples/*: Q000, Q001, Q002, NID001, NID002
lazyllm/components/deploy/mineru/mineru_patches.py: NID002
lazyllm/components/deploy/mineru/mineru_server_module.py: NID002
max-line-length = 121
# E701: multiple statements on one line (colon)
# E702: multiple statements on one line (semicolon)
# E704: multiple statements on one line (def)
# E302: expected 2 blank lines, found 1
# E305: expected 2 blank lines after class or function definition, found 1
# E124: closing bracket does not match visual indentation
# W503: line break before binary operator
ignore = E701, E702, E704, E302, E305, E124, W503, Q003
max-complexity = 12
docstring-quotes = single
multiline-quotes = single
[flake8:local-plugins]
extension =
NID = flake8_no_direct_imports:NoDirectImportChecker
paths =
scripts