Skip to content

Add tox posargs#706

Merged
takluyver merged 1 commit intopypa:mainfrom
cdce8p:tox-posargs
Feb 7, 2025
Merged

Add tox posargs#706
takluyver merged 1 commit intopypa:mainfrom
cdce8p:tox-posargs

Conversation

@cdce8p
Copy link
Member

@cdce8p cdce8p commented Nov 21, 2024

Substitution with {posargs} allows devs to pass additional arguments to the tox command. Especially helpful if you like to run only a subset of tests for debugging. E.g

tox -e py313 -- --no-cov flit_core/tests_core/test_config.py

# would run
py313: commands[0]> python -m pytest --cov=flit --cov=flit_core/flit_core --no-cov flit_core/tests_core/test_config.py

https://tox.wiki/en/latest/config.html#substitutions-for-positional-arguments-in-commands

@takluyver takluyver merged commit c13d414 into pypa:main Feb 7, 2025
@takluyver takluyver added this to the 3.11 milestone Feb 7, 2025
@cdce8p cdce8p deleted the tox-posargs branch February 7, 2025 15:22
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