-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy path.flake8
51 lines (49 loc) · 1.78 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
[flake8]
max-line-length = 100
docstring-convention = google
; enable-extensions = G # if using flake8-google-style plugins
exclude =
.git,
venv,
.venv,
.pytest_cache,
dist,
.idea,
docs/conf.py,
weaviate/collections/orm.py,
weaviate/collections/classes/orm.py,
weaviate/proto/**/*.py,
build/
tools/stubs.py,
ignore = D100, D101, D102, D103, D104, D105, D107, E203, E266, E501, E704, E731, W503, DOC301
per-file-ignores =
weaviate/cluster/types.py: A005
weaviate/collections/classes/types.py: A005
weaviate/collections/collections/__init__.py: A005
weaviate/collections/__init__.py: A005
weaviate/debug/types.py: A005
weaviate/collections/tenants/types.py: A005
weaviate/types.py: A005
weaviate/warnings.py: A005
test/*: D100, D101, D102, D103, D104, D105, D107, PYD001
mock_tests/*: D100, D101, D102, D103, D104, D105, D107, PYD001
integration/*: D100, D101, D102, D103, D104, D105, D107, PYD001
# D100: Missing docstring in a public module
# D101: Missing docstring in a public class
# D102: Missing docstring in a public method
# D103: Missing docstring in a public function
# D104: Missing docstring in a public package
# D105: Missing docstring in a magic method
# D107: Missing docstring in an __init__ method
# E203: Whitespace before ':'
# E266: Too many consecutive '#' in a comment
# E501: Line too long
# E704: Multiple statements on one line (def)
# E731: Do not assign a lambda expression, use a def instead
# W503: Line break before a binary operator
# DOC301: Class method __init__ should not have a docstring
[tool.pydoclint]
style = google # or numpy or sphinx
arg-type-hints-in-docstring = true # Optional: require types in docstrings
check-return-types = true
require-return-section-when-returning-none = false