From 1557579a28ff997043e10a3f2affeefdd300c072 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 5 Feb 2023 20:34:21 -0800 Subject: [PATCH] chore(deps): update black (23.1.0) and commitizen (2.40.0) Update the dependency versions: black: 23.1.0 commitizen: 2.40.0 They needed to be updated together as just updating `black` caused a dependency conflict. Updated files by running `black` and committing the changes. --- gitlab/exceptions.py | 1 - requirements-lint.txt | 4 ++-- tests/functional/conftest.py | 2 -- tests/unit/objects/test_statistics.py | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index 97f097d77..d3b0f5d77 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -9,7 +9,6 @@ def __init__( response_code: Optional[int] = None, response_body: Optional[bytes] = None, ) -> None: - Exception.__init__(self, error_message) # Http status code self.response_code = response_code diff --git a/requirements-lint.txt b/requirements-lint.txt index 86a82707a..d65e06d55 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,7 +1,7 @@ -r requirements.txt argcomplete==2.0.0 -black==22.10.0 -commitizen==2.35.0 +black==23.1.0 +commitizen==2.40.0 flake8==5.0.4 isort==5.10.1 mypy==0.981 diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py index c85b17226..6560d91fc 100644 --- a/tests/functional/conftest.py +++ b/tests/functional/conftest.py @@ -96,7 +96,6 @@ def reset_gitlab(gl: gitlab.Gitlab) -> None: helpers.safe_delete(project) for group in gl.groups.list(): - # skip deletion of a descendant group to prevent scenarios where parent group # gets deleted leaving a dangling descendant whose deletion will throw 404s. if group.parent_id: @@ -243,7 +242,6 @@ def gitlab_token( docker_services, fixture_dir: pathlib.Path, ) -> str: - start_time = time.perf_counter() logging.info("Waiting for GitLab container to become ready.") docker_services.wait_until_responsive( diff --git a/tests/unit/objects/test_statistics.py b/tests/unit/objects/test_statistics.py index a65b6e1ed..c7ace5731 100644 --- a/tests/unit/objects/test_statistics.py +++ b/tests/unit/objects/test_statistics.py @@ -22,7 +22,6 @@ @pytest.fixture def resp_application_statistics(): - with responses.RequestsMock() as rsps: rsps.add( method=responses.GET,