feat: Add tox configuration for OpenStack standard testing#100
Merged
feat: Add tox configuration for OpenStack standard testing#100
Conversation
Add macOS system file to gitignore to prevent accidental commits
Add tox.ini following OpenStack project standards to support: - Multiple Python versions testing (py3, py310-313) - Style checking with ruff (pep8 environment) - Code formatting (format environment) - Coverage reporting (cover environment) - Debug support (debug environment) - Virtual environment for arbitrary commands (venv environment) This allows OpenStack contributors to use familiar tox commands while maintaining uv for fast local development.
Add comprehensive development documentation including: - Setup instructions for both uv and tox workflows - uv commands for fast local development - tox commands following OpenStack standards - Testing section with coverage information (85%+) This helps contributors choose their preferred development workflow.
S0okJu
previously approved these changes
Oct 26, 2025
Collaborator
S0okJu
left a comment
There was a problem hiding this comment.
Thank you for adding .DS_Store.
halucinor
reviewed
Oct 27, 2025
Move tox.ini dependencies to pyproject.toml dependency-groups
and update all tox environments to use 'uv sync' instead of
hardcoded dependency lists. This establishes pyproject.toml
as the single source of truth for dependency management.
Changes:
- Add coverage tools to test dependency group
- Update tox environments to use 'uv sync --group {test|dev}'
- Replace direct commands with 'uv run' for consistency
This maintains OpenStack tox standards while leveraging uv's
speed. All tests passing (156/156, 85% coverage).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add tox configuration following OpenStack standards while keeping uv for development.
Changes
tox.iniwith OpenStack-style environments.DS_Storeto.gitignoreMotivation
Most OpenStack projects use tox for testing and CI/CD. This allows OpenStack contributors to use familiar tox commands while maintaining uv for fast local development.
Use Cases
tox -e py3ortox -e py310tox -e pep8tox -e cover(85%+ coverage)tox -e venv -- <command>tox -e formatTesting
All environments tested and working:
tox -e py3- 156 tests passedtox -e pep8- All checks passedtox -e cover- 85% coveragetox -e venv- Workinguvworkflow - All commands working#99