Skip to content

Add optional test dependencies to pyproject.toml#26

Merged
roesel merged 2 commits intomainfrom
claude/fix-pytest-dependency-Wvvwu
Mar 8, 2026
Merged

Add optional test dependencies to pyproject.toml#26
roesel merged 2 commits intomainfrom
claude/fix-pytest-dependency-Wvvwu

Conversation

@roesel
Copy link
Copy Markdown
Owner

@roesel roesel commented Mar 8, 2026

This PR adds an optional dependency group for testing to the project configuration.

Summary

Added a new [project.optional-dependencies] section to pyproject.toml to define test-related dependencies that can be installed separately from the core package.

Changes

  • Created test optional dependency group containing:
    • pytest - testing framework
    • pytest-cov - code coverage plugin for pytest

This allows users and developers to install test dependencies with pip install elliptec[test] without requiring them for basic package usage.

claude added 2 commits March 8, 2026 13:10
pytest and pytest-cov were not declared in pyproject.toml, so
`uv run pytest` failed because the packages were never installed.
Add a [project.optional-dependencies] test group to fix this.

Usage: uv run --extra test pytest -m "not hardware" --cov=elliptec

https://claude.ai/code/session_01TPV1MxfsooaGF1JWJFkxUn
@roesel roesel merged commit 8320487 into main Mar 8, 2026
3 checks passed
@roesel roesel deleted the claude/fix-pytest-dependency-Wvvwu branch March 8, 2026 13:13
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