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 @@ -7,7 +7,6 @@
from pathlib import Path

import pytest
from beartype import beartype
from mock_vws import MockVWS
from mock_vws.database import CloudDatabase
from sybil import Sybil
Expand All @@ -18,14 +17,6 @@
)


@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.fixture(name="make_image_file")
def fixture_make_image_file(
*,
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ optional-dependencies.dev = [
"pyroma==5.0.1",
"pytest==9.0.3",
"pytest-asyncio==1.3.0",
"pytest-beartype-tests",
"pytest-cov==7.1.0",
"pyyaml==6.0.3",
"ruff==0.15.11",
Expand Down Expand Up @@ -93,6 +94,9 @@ optional-dependencies.release = [ "check-wheel-contents==0.6.3" ]
urls.Documentation = "https://vws-python.github.io/vws-python/"
urls.Source = "https://github.com/VWS-Python/vws-python"

[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 section adds dead configuration

Low Severity

The newly added [dependency-groups] section with dev = [] is empty and serves no purpose. All dev dependencies live in optional-dependencies.dev, and CI uses uv run --extra=dev. This dead configuration could confuse contributors about where dev dependencies are managed, especially since uv sync installs dependency-groups.dev by default — which here resolves to nothing.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 95b5a46. Configure here.


[tool.setuptools]
zip-safe = false
package-data.vws = [
Expand All @@ -114,6 +118,7 @@ bdist_wheel.universal = true
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 Expand Up @@ -364,7 +369,6 @@ ignore_names = [
"HTTPXTransport",
# pytest configuration
"pytest_collect_file",
"pytest_collection_modifyitems",
"pytest_plugins",
# pytest fixtures - we name fixtures like this for this purpose
"fixture_*",
Expand Down
Loading