From a83a0060c7e88b6d7e081b47830a11216e051cb9 Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Fri, 14 Jun 2024 07:33:42 -0700 Subject: [PATCH] Revert pip upgrade (#334) --- pyproject.toml | 2 +- src/tox_ansible/plugin.py | 9 +-------- tests/unit/test_plugin.py | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 26945d2..fca31bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ line-length = 100 [tool.coverage.report] exclude_also = ["if TYPE_CHECKING:", "pragma: no cover"] -fail_under = 82 +fail_under = 81 ignore_errors = true show_missing = true skip_covered = true diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index ffc6122..3583051 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -449,7 +449,7 @@ def conf_commands_for_sanity( return commands -def conf_commands_pre( # noqa: C901 +def conf_commands_pre( env_conf: EnvConfigSet, c_name: str, c_namespace: str, @@ -473,13 +473,6 @@ def conf_commands_pre( # noqa: C901 galaxy_build_dir = f"{envtmpdir}/collection_build" end_group = "echo ::endgroup::" - if in_action(): - group = "echo ::group::Ensure pip is up to date" - commands.append(group) - commands.append("python -m ensurepip --upgrade") - if in_action(): - commands.append(end_group) - if in_action(): group = "echo ::group::Make the galaxy build dir" commands.append(group) diff --git a/tests/unit/test_plugin.py b/tests/unit/test_plugin.py index 9e365c5..a83e055 100644 --- a/tests/unit/test_plugin.py +++ b/tests/unit/test_plugin.py @@ -38,5 +38,5 @@ def test_commands_pre(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: ) result = conf_commands_pre(env_conf=conf, c_name="test", c_namespace="test") - number_commands = 15 + number_commands = 12 assert len(result) == number_commands, result