File tree Expand file tree Collapse file tree 4 files changed +260
-13
lines changed
Expand file tree Collapse file tree 4 files changed +260
-13
lines changed Original file line number Diff line number Diff line change 1414 working-directory : ./py
1515 env :
1616 TYPEGUARD : 1
17+ PROFILE : 1
1718
1819 strategy :
1920 fail-fast : false
3334 - name : Install Python
3435 run : uv venv -p ${{ matrix.python-version }}
3536 - name : Install deps
36- run : uv pip install -e ".[ dev]"
37+ run : uv pip install -e . --group dev
3738 - name : Test
38- run : uv run pytest
39+ run : uv run pytest --cov=mistql
3940 - name : Lint
4041 run : uv run ruff format --check
4142 - name : Typecheck
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ dependencies = [
1919authors = [{ name = " Evin Sellin" , email = " evinism@gmail.com" }]
2020urls = { Repository = " https://github.com/evinism/mistql" , Issues = " https://github.com/evinism/mistql/issues" }
2121
22- [project . optional-dependencies ]
22+ [dependency-groups ]
2323dev = [
2424 " pytest>=7.4.4,<8.0.0" ,
2525 " ruff>=0.11.12,<0.12.0" ,
2626 " toml>=0.10.2,<1.0.0" ,
2727 " mypy>=1.4.1,<2.0.0" ,
2828 " snakeviz>=2.2.0,<3.0.0" ,
29+ " pytest-cov>=5.0.0" ,
2930]
3031
3132[[tool .mypy .overrides ]]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def test_performance():
3737 profiler .disable ()
3838
3939 # Print profiling results
40- s = io .StringIO ()
41- ps = pstats .Stats (profiler , stream = s ).sort_stats ("cumulative" )
42- ps .print_stats ()
40+ ps = pstats .Stats (profiler )
4341 ps .dump_stats ("profile.pstats" )
42+ ps .strip_dirs ()
43+ ps .sort_stats ("cumulative" ).print_stats (20 )
You can’t perform that action at this time.
0 commit comments