Skip to content

Commit d2e815a

Browse files
committed
chore: Updated Pytest and Mypy config
1 parent 9c6611a commit d2e815a

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ omit = [
6262
exclude_also = [
6363
"pragma: not covered",
6464
"@overload",
65+
"except importlib.metadata.PackageNotFoundError:",
6566
]
6667

6768
[tool.hatch.build.targets.sdist]
@@ -76,16 +77,27 @@ include = ["src/python_ms"]
7677
[tool.hatch.version]
7778
source = "uv-dynamic-versioning"
7879

79-
[tool.pytest.ini_options]
80-
minversion = "6.0"
81-
addopts = """
82-
--doctest-modules \
83-
--cov=./ \
84-
--cov-append \
85-
--cov-report html:tests/reports/coverage-html \
86-
--cov-report xml:tests/reports/coverage.xml \
87-
--ignore=docs/
88-
"""
80+
[tool.mypy]
81+
exclude = ["tests/"]
82+
exclude_gitignore = true
83+
strict = true
84+
strict_equality = true
85+
warn_redundant_casts = true
86+
warn_unused_configs = true
87+
warn_unused_ignores = true
88+
89+
[tool.pytest]
90+
minversion = "9.0"
91+
addopts = [
92+
"--doctest-modules",
93+
"--cov=./",
94+
"--cov-append",
95+
"--cov-fail-under=80",
96+
"--cov-report=html:tests/reports/coverage-html",
97+
"--cov-report=term-missing:skip-covered",
98+
"--cov-report=xml:tests/reports/coverage.xml",
99+
"--ignore=docs/"
100+
]
89101
testpaths = [
90102
"tests",
91103
]

0 commit comments

Comments
 (0)