-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpytest.ini
More file actions
62 lines (52 loc) · 1.92 KB
/
Copy pathpytest.ini
File metadata and controls
62 lines (52 loc) · 1.92 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
[pytest]
addopts =
-rsvx -m 'not extra'
--cov-config=pytest.ini --cov=biocommons.seqrepo --cov-report term-missing
--doctest-modules --doctest-glob='*.rst' --doctest-glob='*.txt'
--strict-markers
doctest_optionflags =
ALLOW_BYTES
ALLOW_UNICODE
ELLIPSIS
IGNORE_EXCEPTION_DETAIL
NORMALIZE_WHITESPACE
norecursedirs =
*.egg-info .eggs build cover _data dist etc examples misc prof sbin tmp venv
testpaths = src tests
# show warnings
filterwarnings =
default
# yoyo/backends/base.py:411: DeprecationWarning: The default datetime adapter is deprecated as of Python 3.12
# As of 2025-03-02, there is no fix in yoyo
ignore:The default datetime adapter is deprecated
# Python 3.13+ ResourceWarnings for unclosed sqlite3 connections from third-party libraries
# This is a known issue in Python 3.13+ where sqlite3 now emits ResourceWarning for
# connections not explicitly closed. These warnings originate from importlib_metadata,
# collections, and ast modules - not from seqrepo code.
# See: https://github.com/python/cpython/issues/105539
# Related: https://alexwlchan.net/til/2025/python3-13-sqlite-warnings/
ignore:unclosed database in <sqlite3.Connection object:ResourceWarning
markers =
network
vcr
############################################################################
## COVERAGE
[run]
# enable branch coverage after we get default coverage up
# branch = True
# don't know how to easily test the CLI. Any takers?
omit =
src/biocommons/seqrepo/cli.py
[report]
show_missing = True
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.: