-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.cfg
54 lines (45 loc) · 1.35 KB
/
setup.cfg
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
52
53
54
[flake8]
max-line-length = 120
docstring-convention = google
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
# D202: No blank lines allowed after function docstring
ignore = D100, D101, D102, D103, D104, D202, D212, W503, N803, N806,
exclude = detectree2/data_loading detectree2/models/train_tune.py
max-complexity = 10
# [pep8]
# max-line-length = 120
# indent-size = 4
# only supported with pyproject.toml
# [black]
# line-length = 120
[yapf]
based_on_style = pep8
column_limit = 120
[isort]
multi_line_output = 3
include_trailing_comma = true
[mypy]
# Suggested at https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
# Goal would be to make all of the below True long-term
disallow_untyped_defs = False
disallow_any_unimported = False
no_implicit_optional = False
check_untyped_defs = False
warn_unused_ignores = False
show_error_codes = True
ignore_missing_imports = True
mypy_path = .stubs
warn_return_any = True
warn_unused_configs = True
[mypy-requests]
ignore_missing_imports = True
[mypy-detectree2.data_loading.*]
ignore_errors = True
[tool:pytest]
testpaths = detectree2/tests