mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
50 lines
1.3 KiB
INI
50 lines
1.3 KiB
INI
![]() |
[mypy]
|
||
|
plugins =
|
||
|
pydantic.mypy
|
||
|
exclude = ^(venv|build|dist)/
|
||
|
ignore_missing_imports = yes
|
||
|
strict_optional = yes
|
||
|
check_untyped_defs = yes
|
||
|
disallow_incomplete_defs = yes
|
||
|
disallow_untyped_decorators = yes
|
||
|
warn_unused_configs = yes
|
||
|
# eventually we'd like to enable these
|
||
|
disallow_untyped_defs = no
|
||
|
|
||
|
# try to be a bit more strict in certain areas of the codebase
|
||
|
[mypy-datahub.*]
|
||
|
ignore_missing_imports = no
|
||
|
[mypy-tests.*]
|
||
|
ignore_missing_imports = no
|
||
|
|
||
|
[tool:pytest]
|
||
|
asyncio_mode = auto
|
||
|
addopts = --cov=src --cov-report='' --cov-config setup.cfg --strict-markers -s -v
|
||
|
markers =
|
||
|
integration: marks tests to only run in integration (deselect with '-m "not integration"')
|
||
|
|
||
|
testpaths =
|
||
|
tests/unit
|
||
|
tests/integration
|
||
|
|
||
|
# [coverage:run]
|
||
|
# # Because of some quirks in the way setup.cfg, coverage.py, pytest-cov,
|
||
|
# # and tox interact, we should not uncomment the following line.
|
||
|
# # See https://pytest-cov.readthedocs.io/en/latest/config.html and
|
||
|
# # https://coverage.readthedocs.io/en/coverage-5.0/config.html.
|
||
|
# # We also have some additional pytest/cov config options in tox.ini.
|
||
|
# # source = src
|
||
|
|
||
|
# [coverage:paths]
|
||
|
# # This is necessary for tox-based coverage to be counted properly.
|
||
|
# source =
|
||
|
# src
|
||
|
# */site-packages
|
||
|
|
||
|
[coverage:report]
|
||
|
show_missing = true
|
||
|
exclude_lines =
|
||
|
pragma: no cover
|
||
|
@abstract
|
||
|
if TYPE_CHECKING:
|