Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@

from tests.mock_vws.utils.retries import RETRY_EXCEPTIONS


@beartype
def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
"""Apply the beartype decorator to all collected test functions."""
for item in items:
if isinstance(item, pytest.Function):
item.obj = beartype(obj=item.obj)


pytest_collect_file = Sybil(
parsers=[
DocTestParser(optionflags=ELLIPSIS),
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ optional-dependencies.dev = [
"pyright==1.1.408",
"pyroma==5.0.1",
"pytest==9.0.3",
"pytest-beartype-tests",
"pytest-retry==1.7.0",
"pytest-xdist==3.8.0",
"pyyaml==6.0.3",
Expand Down Expand Up @@ -114,6 +115,9 @@ optional-dependencies.release = [ "check-wheel-contents==0.6.3" ]
urls.Documentation = "https://vws-python.github.io/vws-python-mock/"
urls.Source = "https://github.com/VWS-Python/vws-python-mock"

[dependency-groups]
dev = []
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty dependency-groups dev shadows optional-dependencies dev

Low Severity

The newly added [dependency-groups] section with dev = [] is empty and serves no apparent purpose. All CI workflows use uv run --extra=dev, which references optional-dependencies.dev. This empty group creates a trap: a future developer running uv sync --group dev would get zero dependencies installed instead of the full dev set. The PR description doesn't mention this addition, suggesting it may be unintentional.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 43b5b51. Configure here.


[tool.setuptools]
zip-safe = false
package-data.mock_vws = [
Expand Down Expand Up @@ -141,6 +145,7 @@ fallback_version = "0.0.0"
version_scheme = "post-release"

[tool.uv]
sources.pytest-beartype-tests = { git = "https://github.com/adamtheturtle/pytest-beartype-tests.git", rev = "bc81d99" }
sources.torch = { index = "pytorch-cpu" }
sources.torchvision = { index = "pytorch-cpu" }
index = [ { name = "pytorch-cpu", url = "https://download.pytorch.org/whl/cpu", explicit = true } ]
Expand Down
Loading