mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-10-29 19:47:00 +00:00
Ethan Paul
198287a633
Standardize on "import module" format rather than "from module import foo" format Remove _poetry stub module since we directly depend on the poetry package now Fix conflicts between modules and parameters both named 'poetry' Fixes #92
19 lines
591 B
Python
19 lines
591 B
Python
"""Add additional command line arguments to tox to configure plugin behavior"""
|
|
|
|
import tox.config.cli.parser
|
|
import tox.plugin
|
|
|
|
from tox_poetry_installer import constants
|
|
|
|
|
|
# pylint: disable=missing-function-docstring
|
|
@tox.plugin.impl
|
|
def tox_add_option(parser: tox.config.cli.parser.ToxParser):
|
|
parser.add_argument(
|
|
"--parallel-install-threads",
|
|
type=int,
|
|
dest="parallel_install_threads",
|
|
default=constants.DEFAULT_INSTALL_THREADS,
|
|
help="Number of locked dependencies to install simultaneously; set to 0 to disable parallel installation",
|
|
)
|