Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tox posargs #706

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add tox posargs #706

wants to merge 1 commit into from

Conversation

cdce8p
Copy link

@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

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