File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313from tests .mock_vws .utils .retries import RETRY_EXCEPTIONS
1414
15-
16- @beartype
17- def pytest_collection_modifyitems (items : list [pytest .Item ]) -> None :
18- """Apply the beartype decorator to all collected test functions."""
19- for item in items :
20- if isinstance (item , pytest .Function ):
21- item .obj = beartype (obj = item .obj )
22-
23-
2415pytest_collect_file = Sybil (
2516 parsers = [
2617 DocTestParser (optionflags = ELLIPSIS ),
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ optional-dependencies.dev = [
7777 " pyright==1.1.408" ,
7878 " pyroma==5.0.1" ,
7979 " pytest==9.0.3" ,
80+ " pytest-beartype-tests" ,
8081 " pytest-retry==1.7.0" ,
8182 " pytest-xdist==3.8.0" ,
8283 " pyyaml==6.0.3" ,
@@ -114,6 +115,9 @@ optional-dependencies.release = [ "check-wheel-contents==0.6.3" ]
114115urls.Documentation = " https://vws-python.github.io/vws-python-mock/"
115116urls.Source = " https://github.com/VWS-Python/vws-python-mock"
116117
118+ [dependency-groups ]
119+ dev = []
120+
117121[tool .setuptools ]
118122zip-safe = false
119123package-data.mock_vws = [
@@ -141,6 +145,7 @@ fallback_version = "0.0.0"
141145version_scheme = " post-release"
142146
143147[tool .uv ]
148+ sources.pytest-beartype-tests = { git = " https://github.com/adamtheturtle/pytest-beartype-tests.git" , rev = " bc81d99" }
144149sources.torch = { index = " pytorch-cpu" }
145150sources.torchvision = { index = " pytorch-cpu" }
146151index = [ { name = " pytorch-cpu" , url = " https://download.pytorch.org/whl/cpu" , explicit = true } ]
You can’t perform that action at this time.
0 commit comments