Skip to content

Instantly share code, notes, and snippets.

@pavan538
Last active February 19, 2018 06:06
Show Gist options
  • Save pavan538/76ad8dc38f007c1a0bcd40d84a780f1e to your computer and use it in GitHub Desktop.
Save pavan538/76ad8dc38f007c1a0bcd40d84a780f1e to your computer and use it in GitHub Desktop.
python tox build tool

How to pass command line parameters to tox command

Try adding {posargs} in the commands section of your tox.ini, like this:

commands =
    python manage.py test {posargs}

Then at the command line, something like:

tox -- --pattern='some_specific_test.py'

Everything after the -- will be substituted in as {posargs}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment