Skip to content

Consolidate test dependencies into pyproject.toml#166

Merged
agners merged 1 commit into
home-assistant-libs:mainfrom
heikkih:chore/consolidate-test-deps
May 7, 2026
Merged

Consolidate test dependencies into pyproject.toml#166
agners merged 1 commit into
home-assistant-libs:mainfrom
heikkih:chore/consolidate-test-deps

Conversation

@heikkih
Copy link
Copy Markdown
Contributor

@heikkih heikkih commented May 7, 2026

Summary

Removes the divergence between requirements-test.txt and [project.optional-dependencies] flagged by @agners on #157.

  • Moves test runtime deps to [project.optional-dependencies] test (pytest, pytest-asyncio, respx)
  • Adds [project.optional-dependencies] lint for the linters (black, flake8, isort) — same exact pins as before
  • Deletes requirements-test.txt
  • CI workflow now installs via pip install -e .[test,lint]

Versions match what was in requirements-test.txt after the recent dependabot bumps (#162, #163, #164).

Test plan

  • pip install -e .[test,lint] resolves cleanly
  • pytest tests/ — 18 passed, 5 deselected
  • flake8 / black / isort all pass

🤖 Generated with Claude Code

Move all test/lint deps from requirements-test.txt into
[project.optional-dependencies] with separate `test` and `lint`
groups, and update CI to install via `pip install -e .[test,lint]`.
The requirements-test.txt file is removed.

Per @agners' follow-up note on home-assistant-libs#157.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@agners agners left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@agners agners merged commit 3e14957 into home-assistant-libs:main May 7, 2026
2 checks passed
@heikkih heikkih deleted the chore/consolidate-test-deps branch May 13, 2026 10:48
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.

2 participants