Skip to content

Commit e8ad69a

Browse files
authored
fix: remove coverage, error on warnings (#49)
## What I'm changing - Remove coverage, error on warnings in tests ## How I did it We aren't using coverage information for now, we can always re-add it later. ## Checklist - [x] Tests pass: `uv run pytest` - [x] Checks pass: `uv run pre-commit --all-files`
1 parent 2f45e8c commit e8ad69a

File tree

2 files changed

+2
-89
lines changed

2 files changed

+2
-89
lines changed

pyproject.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies = [
1313
[dependency-groups]
1414
dev = [
1515
"pytest>=8.1.1",
16-
"pytest-coverage>=0.0",
1716
"mypy>=1.15.0",
1817
"pytest>=8.3.5",
1918
"ruff>=0.11.2",
@@ -74,20 +73,12 @@ plugins.md013.enabled = false # @gadomski likes to do one-line-per-sentence in
7473
plugins.md024.enabled = false # duplicate headers in changelog
7574
plugins.md041.enabled = false # github templates don't start with an h1
7675

77-
[tool.coverage.report]
78-
show_missing = true
79-
skip_empty = true
80-
sort = "Cover"
81-
omit = [
82-
"stapi-pydantic/tests/**/*.py",
83-
"stapi-fastapi/tests/**/*.py",
84-
]
85-
8676
[tool.pytest.ini_options]
87-
addopts="--cov=stapi-pydantic/src/stapi_pydantic --cov=stapi-fastapi/src/stapi_fastapi"
8877
filterwarnings = [
78+
"error",
8979
"ignore:The 'app' shortcut is now deprecated.:DeprecationWarning",
9080
"ignore:Pydantic serializer warnings:UserWarning",
81+
"ignore:jsonschema.exceptions.RefResolutionError is deprecated:DeprecationWarning",
9182
]
9283
markers = [
9384
"mock_products",

uv.lock

Lines changed: 0 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)