-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
99 lines (92 loc) · 2.96 KB
/
pyproject.toml
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
[tool.pytest.ini_options]
minversion = "6.0"
#addopts = '--cov=lumo'
testpaths = [
"tests",
]
pythonpath = [
"src"
]
filterwarnings = [
"ignore::pytest.PytestDeprecationWarning", # from pytest-cov
"ignore::DeprecationWarning:", # from tensorboard
"ignore:.*ssl.SSLSocket:pytest.PytestUnraisableExceptionWarning",
"ignore:.*ssl.SSLSocket:ResourceWarning",
"ignore::ResourceWarning:asyncio",
# From plotting doctests
"ignore:More than 20 figures have been opened:RuntimeWarning",
# Will be fixed in numba 0.56: https://github.com/numba/numba/issues/7758
"ignore:`np.MachAr` is deprecated:DeprecationWarning:numba",
"ignore:.*urllib3:DeprecationWarning:botocore",
"ignore:Setuptools is replacing distutils.:UserWarning:_distutils_hack",
# https://github.com/PyTables/PyTables/issues/822
"ignore:a closed node found in the registry:UserWarning:tables",
"ignore:`np.object` is a deprecated:DeprecationWarning:tables",
"ignore:tostring:DeprecationWarning:tables",
"ignore:distutils Version classes are deprecated:DeprecationWarning:numexpr",
"ignore:distutils Version classes are deprecated:DeprecationWarning:fastparquet",
"ignore:distutils Version classes are deprecated:DeprecationWarning:fsspec",
]
#
[tool.coverage.run]
source = ['tests']
[tool.coverage.report]
ignore_errors = false
show_missing = true
omit = [
'src/lumo/contrib/*',
'src/lumo/cli/*',
'src/lumo/vis/*',
'src/lumo/decorators/*',
'src/lumo/exp/agent.py',
'src/lumo/exp/lazy_panel.py',
'src/lumo/analyse/*',
'src/lumo/sketch/*',
'src/lumo/core/record_backend/*',
'src/lumo/utils/memory_grab.py',
'src/lumo/data/collate.py',
'src/lumo/utils/screen.py',
'src/lumo/utils/timer.py',
'src/lumo/utils/exithook.py',
'src/lumo/utils/filelock.py',
'src/lumo/utils/filelock2.py',
'src/lumo/utils/fmt.py',
'src/lumo/utils/hash.py',
'src/lumo/utils/logger.py',
'src/lumo/utils/cache.py',
'src/lumo/utils/ast.py',
'src/lumo/utils/memory_grab.py',
]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:s
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"AbstractMethodError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
# some tricky object that can not well tested.
"except ImportError",
"pass",
"return None",
"break", #
# Hard to test
"class RecordAbort",
"class GitCommit",
"def summary_experiment",
"def plot",
"if torch.cuda.is_available()", # ignore cuda
"if is_dist():", # ignore distribution
# Deprecated method:
"def add_input_transform",
"def add_output_transform",
"raise StopIteration"
]
[tool.coverage.html]
directory = 'coverage_html_report'