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

Allow parallel mode without arguments #1559

Merged
merged 1 commit into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog/1418.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow parallel mode without arguments. - by :user:`ssbarnea`
4 changes: 3 additions & 1 deletion src/tox/config/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ def add_parallel_flags(parser):
parser.add_argument(
"-p",
"--parallel",
nargs="?",
const="auto",
dest="parallel",
help="run tox environments in parallel, the argument controls limit: all,"
" auto - cpu count, some positive number, zero is turn off",
" auto or missing argument - cpu count, some positive number, 0 to turn off",
ssbarnea marked this conversation as resolved.
Show resolved Hide resolved
action="store",
type=parse_num_processes,
default=DEFAULT_PARALLEL,
Expand Down