-
Notifications
You must be signed in to change notification settings - Fork 68
/
setup.cfg
132 lines (113 loc) · 4.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# vim: set ft=dosini:
[pycodestyle]
count = True
# E203: Whitespace before : (black incompatibility)
# W503: Line break occurred before a binary operator
# W504: Line break occurred after a binary operator
ignore = E203,W503,W504
format = pylint
# See Also: .editorconfig, .pylintrc
max-line-length = 99
show-source = True
statistics = True
[pydocstyle]
# D102: Missing docstring in public method (Avoids inheritence bug. Force checked in pylint instead.)
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
# D401: First line should be in imperative mood
# We have many docstrings that are too long to fit on one line, so we ignore both of these two rules:
# D205: 1 blank line required between summary line and description
# D400: First line should end with a period
add_ignore = D102,D105,D107,D401,D205,D400
match = .+(?<!_test)\.py
convention = numpy
[flake8]
max-line-length = 99
# black incompatibility
extend-ignore = E203
[tool:pytest]
minversion = 7.1
#pythonpath = .
# Run all tests to completion on multiple processes.
# Run failed and new tests first by default.
addopts =
-vv
-l
--ff --nf
-n auto
--doctest-modules
# --dist loadgroup
# --log-level=DEBUG
# Moved these to Makefile (coverage is expensive and we only need it in the pipelines generally).
#--cov=mlos_core --cov-report=xml
testpaths = mlos_core mlos_bench mlos_viz
# Ignore some upstream deprecation warnings.
filterwarnings =
ignore:.*(builtin type (swigvarlink|SwigPyObject|SwigPyPacked) has no __module__ attribute):DeprecationWarning:.*:0
ignore:.*(get_hyperparam|get_dictionary|parents_of|to_vector|(list\(.*values\(\)\))).*:DeprecationWarning:smac:0
ignore:.*(Please leave at default or explicitly set .size=None).*:DeprecationWarning:smac:0
ignore:.*(declarative_base.*function is now available as sqlalchemy.orm.declarative_base):DeprecationWarning:optuna:0
ignore:.*(Trying to register a configuration that was not previously suggested).*:UserWarning:.*llamatune.*:0
ignore:.*(DISPLAY environment variable is set).*:UserWarning:.*conftest.*:0
ignore:.*(coroutine 'sleep' was never awaited).*:RuntimeWarning:.*event_loop_context_test.*:0
ignore:.*(coroutine 'sleep' was never awaited).*:RuntimeWarning:.*test_ssh_service.*:0
ignore:.*(Configuration.*was already registered).*:UserWarning:.*flaml_optimizer.*:0
[coverage:report]
exclude_also =
def __repr__
if 0:
if False
if TYPE_CHECKING:
if sys.version_info
raise NotImplementedError
if __name__ == .__main__.:
#
# mypy static type checker configs
#
[mypy]
#ignore_missing_imports = True
warn_unused_configs = True
warn_unused_ignores = True
warn_unreachable = True
warn_return_any = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
strict = True
allow_any_generics = True
hide_error_codes = False
# regex of files to skip type checking
# setup.py looks like duplicates when run from the root of the repo even though they're part of different packages.
# There's not much in them so we just skip them.
# We also skip several vendor files that currently throw errors.
exclude = (mlos_(core|bench|viz)/setup.py)|(doc/)|(/build/)|(-packages/_pytest/)
[mypy-fasteners.*]
ignore_missing_imports = True
# https://github.com/dpranke/pyjson5/issues/65
[mypy-json5]
ignore_missing_imports = True
# https://github.com/matplotlib/matplotlib/issues/25634
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-seaborn.*]
ignore_missing_imports = True
[mypy-dabl.*]
ignore_missing_imports = True
# https://github.com/pytest-dev/pytest/issues/10435
[mypy-pytest]
ignore_missing_imports = True
[mypy-pytest_docker.*]
ignore_missing_imports = True
[mypy-xdist.*]
ignore_missing_imports = True
# https://github.com/scikit-learn/scikit-learn/issues/16705
[mypy-sklearn.*]
ignore_missing_imports = True
# https://github.com/scipy/scipy/issues/17158
[mypy-scipy.*]
ignore_missing_imports = True
# https://github.com/pypa/setuptools_scm/issues/501
[mypy-setuptools_scm.*]
ignore_missing_imports = True
# https://github.com/microsoft/FLAML/issues/907
[mypy-flaml.*]
ignore_missing_imports = True