Skip to content

build: dev deps mandatory via PEP 735 dependency-group - #59

Merged
mrebbert merged 1 commit into
mainfrom
test/dev-deps-mandatory
Oct 16, 2026
Merged

mrebbert merged 1 commit into
mainfrom
test/dev-deps-mandatory

Conversation

@mrebbert

Copy link
Copy Markdown
Owner

Summary

  • uv sync ohne Flags installiert ab sofort die komplette Test-Toolkette (aioresponses, pytest, syrupy, hypothesis, mypy, ruff ...). Vorher saß das dev-Set nur in [project.optional-dependencies] und brauchte --all-extras; frische Clones hatten die snapshot-Fixture von syrupy nicht und tests/test_cli_snapshots.py lief in fixture 'snapshot' not found.
  • Neu: [dependency-groups] dev (PEP 735) spiegelt die Dev-Extras. uv liest die Default-Gruppe automatisch ein.
  • [project.optional-dependencies] dev bleibt stehen, damit der pip-Pfad in tests.yml (pip install ".[dev]") weiterhin greift. syrupy-Floor dort auf >=6.0 angehoben (passt zur Version, die seit PR test: snapshot tests for CLI output via syrupy #55 in CI läuft).
  • README.md und docs/development.md zeigen jetzt uv sync statt uv sync --all-extras; die Docs weisen auf --extra test-mutation für den Opt-in-Mutmut-Lauf hin.
  • uv.lock neu gerendert.
  • CI-Workflows (nightly.yml, tests.yml, mutation.yml) behalten --all-extras, damit test-mutation dort erreichbar bleibt, wo es gebraucht wird.

Test plan

  • rm -rf .venv && uv sync installiert syrupy automatisch (+ syrupy==6.1.1)
  • uv run pytest → 547 passed, 34 skipped (Integration ohne Credentials)
  • uv run ruff check → All checks passed!
  • CI (Lint, Tests pip-Matrix, Tests uv-Matrix, Docs, CodeQL) grün

🤖 Generated with Claude Code

https://claude.ai/code/session_01RgkYaQACLxezeceA1hrXQs

uv sync without flags now installs the full test toolbelt
(aioresponses, pytest, syrupy, hypothesis, mypy, ruff ...).
Previously the dev set lived only in [project.optional-dependencies]
dev and required --all-extras — fresh clones silently missed the
`snapshot` fixture from syrupy and test_cli_snapshots.py would error.

- Add [dependency-groups] dev mirroring the extras list; uv auto-
  installs it so contributors need not remember --all-extras.
- Keep [project.optional-dependencies] dev for the pip CI matrix
  (pip install ".[dev]"), tightened the syrupy floor to >=6.0 to
  match the version CI has been running since PR #55.
- README.md and docs/development.md drop --all-extras from the
  setup snippet; docs call out the test-mutation opt-in flag.
- uv.lock regenerated.

CI (nightly.yml, tests.yml, mutation.yml) keeps --all-extras so
test-mutation gets picked up where it is needed.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RgkYaQACLxezeceA1hrXQs
@mrebbert
mrebbert merged commit affa4d8 into main Oct 16, 2026
9 checks passed
@mrebbert
mrebbert deleted the test/dev-deps-mandatory branch October 16, 2026 09:08
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