Skip to content

chore: move test/dev dependencies from extras to dependency groups#5

Open
g4bri3lDev wants to merge 1 commit into
mainfrom
chore/test-deps-group
Open

chore: move test/dev dependencies from extras to dependency groups#5
g4bri3lDev wants to merge 1 commit into
mainfrom
chore/test-deps-group

Conversation

@g4bri3lDev

Copy link
Copy Markdown
Member

Summary

Same change as OpenDisplay/py-opendisplay#112: test and dev lived in [project.optional-dependencies] (extras). Extras are not installed by a plain uv run, so uv run pytest in a fresh checkout or worktree silently fell back to whatever pytest is on $PATH — running tests under a different interpreter against whatever nrf_ota that interpreter could import, instead of the tree under test. Dev tooling is also not publishable package metadata, so [dependency-groups] is the semantically right home.

  • test and dev moved to [dependency-groups]; dev includes test
  • lint.yml: uv sync --extra devuv sync (the dev group is installed by default; the extra no longer exists)
  • test.yml's uv sync --all-extras keeps working (dev group is default)

Test plan

  • fresh venv, plain uv run pytest -q → 30 passed (pytest resolved from .venv, not PATH)
  • uv run ruff check . → clean
  • uv lock resolves

🤖 Generated with Claude Code

Extras are not installed by a plain `uv run`, so `uv run pytest` fell
back to any pytest on PATH, testing against whatever nrf_ota that
interpreter could import instead of the current tree. As dependency
groups (dev includes test), they are synced by default.

lint.yml switches from `uv sync --extra dev` to plain `uv sync`, which
installs the dev group by default.
@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant