From 2b8936267e8a231b46eb7a2ae14764f8353ee274 Mon Sep 17 00:00:00 2001 From: Obeida Shamoun <2135622+oshmoun@users.noreply.github.com> Date: Sat, 24 Jun 2023 01:56:54 +0200 Subject: [PATCH] remove unneeded tox_add_core_config hook --- tox_poetry_installer/__init__.py | 1 - tox_poetry_installer/hooks.py | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/tox_poetry_installer/__init__.py b/tox_poetry_installer/__init__.py index fda75d3..5043b97 100644 --- a/tox_poetry_installer/__init__.py +++ b/tox_poetry_installer/__init__.py @@ -1,5 +1,4 @@ # pylint: disable=missing-docstring -from tox_poetry_installer.hooks import tox_add_core_config from tox_poetry_installer.hooks import tox_add_env_config from tox_poetry_installer.hooks import tox_add_option from tox_poetry_installer.hooks import tox_on_install diff --git a/tox_poetry_installer/hooks.py b/tox_poetry_installer/hooks.py index e73206a..e77c0a4 100644 --- a/tox_poetry_installer/hooks.py +++ b/tox_poetry_installer/hooks.py @@ -8,7 +8,6 @@ from itertools import chain from typing import List from tox.config.cli.parser import ToxParser -from tox.config.sets import ConfigSet from tox.config.sets import EnvConfigSet from tox.plugin import impl from tox.tox_env.api import ToxEnv as ToxVirtualEnv @@ -20,18 +19,6 @@ from tox_poetry_installer import logger from tox_poetry_installer import utilities -@impl -def tox_add_core_config(core_conf: ConfigSet): - """Add required core configuration options to the tox INI file""" - - core_conf.add_config( - "parallel_install_threads", - of_type=int, - default=constants.DEFAULT_INSTALL_THREADS, - desc="Number of locked dependencies to install simultaneously; set to 0 to disable parallel installation", - ) - - @impl def tox_add_option(parser: ToxParser): """Add additional command line arguments to tox to configure plugin behavior"""