-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
63 lines (59 loc) · 1.32 KB
/
setup.cfg
File metadata and controls
63 lines (59 loc) · 1.32 KB
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
[flake8]
max-line-length = 127
exclude =
.git,
__pycache__,
build,
dist,
venv,
env,
algorithms_impl/build,
algorithms_impl/*/build,
algorithms_impl/pybind11,
algorithms_impl/faiss,
algorithms_impl/DiskANN,
algorithms_impl/SPTAG,
DiskANN
ignore =
E203, # whitespace before ':'
E501, # line too long (handled by black)
W503, # line break before binary operator
E402, # module level import not at top of file
[mypy]
python_version = 3.8
warn_return_any = True
warn_unused_configs = True
ignore_missing_imports = True
exclude = (algorithms_impl|DiskANN|venv|build)
[tool:pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
benchmark: marks tests as benchmarks
integration: marks tests as integration tests
unit: marks tests as unit tests
[coverage:run]
source = bench,datasets
omit =
tests/*
algorithms_impl/*
DiskANN/*
venv/*
*/site-packages/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod