File tree Expand file tree Collapse file tree 4 files changed +555
-318
lines changed
Expand file tree Collapse file tree 4 files changed +555
-318
lines changed Original file line number Diff line number Diff line change 4949 version : 0.7.2
5050
5151 - name : Install the project
52- run : uv sync --frozen -- all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
52+ run : uv sync --all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }}
5353
5454 - name : Run pytest
5555 run : uv run --frozen --no-sync pytest
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ dev = [
5959 " pytest-pretty>=1.2.0" ,
6060 " inline-snapshot>=0.23.0" ,
6161 " dirty-equals>=0.9.0" ,
62+ " coverage[toml]>7.10.3" ,
6263]
6364docs = [
6465 " mkdocs>=1.6.1" ,
@@ -124,11 +125,6 @@ mcp = { workspace = true }
124125[tool .pytest .ini_options ]
125126log_cli = true
126127xfail_strict = true
127- addopts = """
128- --color=yes
129- --capture=fd
130- --numprocesses auto
131- """
132128filterwarnings = [
133129 " error" ,
134130 # This should be fixed on Uvicorn's side.
@@ -148,3 +144,24 @@ MD029=false # ol-prefix - Ordered list item prefix
148144MD033 =false # no-inline-html Inline HTML
149145MD041 =false # first-line-heading/first-line-h1
150146MD059 =false # descriptive-link-text
147+
148+ # https://coverage.readthedocs.io/en/latest/config.html#run
149+ [tool .coverage .run ]
150+ brach = true
151+ patch = [" subprocess" ]
152+ concurrency = [" multiprocessing" , " thread" ]
153+ source = [" src" , " tests" ]
154+
155+ # https://coverage.readthedocs.io/en/latest/config.html#report
156+ [tool .coverage .report ]
157+ fail_under = 100
158+ skip_covered = true
159+ show_missing = true
160+ ignore_errors = true
161+ precision = 2
162+ exclude_lines = [
163+ " pragma: no cover" ,
164+ " if TYPE_CHECKING:" ,
165+ " @overload" ,
166+ " raise NotImplementedError" ,
167+ ]
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -ex
4+
5+ uv run coverage run -m pytest -n auto $@
6+ uv run coverage combine
7+ uv run coverage report
You can’t perform that action at this time.
0 commit comments