| 1 |
[tool:pytest] |
| 2 |
# do not litter the working directory |
| 3 |
cache_dir = /tmp/pytest_cache |
| 4 |
# slightly more verbose output |
| 5 |
console_output_style = count |
| 6 |
# pretty-print test names in the Codecov U |
| 7 |
junit_family = legacy |
| 8 |
addopts = |
| 9 |
# show all skipped/failed/xfailed tests in the summary except passed |
| 10 |
-ra |
| 11 |
--strict-config |
| 12 |
--junitxml=.reports/pytest.xml |
| 13 |
|
| 14 |
[coverage:run] |
| 15 |
data_file = .reports/coverage/data |
| 16 |
branch = true |
| 17 |
relative_files = true |
| 18 |
parallel = true |
| 19 |
sigterm = true |
| 20 |
omit = |
| 21 |
test/* |
| 22 |
beets/test/* |
| 23 |
beetsplug/_typing.py |
| 24 |
*/*_types.py |
| 25 |
|
| 26 |
[coverage:report] |
| 27 |
precision = 2 |
| 28 |
skip_empty = true |
| 29 |
show_missing = true |
| 30 |
exclude_also = |
| 31 |
@atexit.register |
| 32 |
if TYPE_CHECKING |
| 33 |
if typing.TYPE_CHECKING |
| 34 |
raise AssertionError |
| 35 |
raise NotImplementedError |
| 36 |
|
| 37 |
[coverage:html] |
| 38 |
show_contexts = true |
| 39 |
|
| 40 |
[mypy] |
| 41 |
allow_any_generics = false |
| 42 |
# FIXME: Would be better to actually type the libraries (if under our control), |
| 43 |
# or write our own stubs. For now, silence errors |
| 44 |
ignore_missing_imports = true |
| 45 |
namespace_packages = true |
| 46 |
explicit_package_bases = true |
| 47 |
|
| 48 |
# Temporary, until we decide on a mypy |
| 49 |
# config for all files. |
| 50 |
[[mypy-beets.plugins]] |
| 51 |
disallow_untyped_decorators = true |
| 52 |
check_untyped_defs = true |
| 53 |
|
| 54 |
[[mypy-beets.metadata_plugins]] |
| 55 |
disallow_untyped_decorators = true |
| 56 |
check_untyped_defs = true |
| 57 |
|
| 58 |
[[mypy-beetsplug.musicbrainz]] |
| 59 |
strict = true |
| 60 |
|
| 61 |
[[mypy-beetsplug.mbpseudo]] |
| 62 |
strict = true |
| 63 |
|
| 64 |
[[mypy-beetsplug._utils]] |
| 65 |
strict = true |
| 66 |
|
| 67 |
[[mypy-beetsplug.tidal.*]] |
| 68 |
strict = true |