summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Villalovos <john@sodarock.com>2023-02-05 23:27:58 -0800
committerGitHub <noreply@github.com>2023-02-06 08:27:58 +0100
commit44786efad1dbb66c8242e61cf0830d58dfaff196 (patch)
treebb6c2a4d744e788f3689006b051d4b13f0c019ff
parent19927906809c329788822f91d0abd8761a85c5c3 (diff)
downloadgitlab-44786efad1dbb66c8242e61cf0830d58dfaff196.tar.gz
chore(deps): update black (23.1.0) and commitizen (2.40.0) (#2479)
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.
-rw-r--r--gitlab/exceptions.py1
-rw-r--r--requirements-lint.txt4
-rw-r--r--tests/functional/conftest.py2
-rw-r--r--tests/unit/objects/test_statistics.py1
4 files changed, 2 insertions, 6 deletions
diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py
index 97f097d..d3b0f5d 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -9,7 +9,6 @@ class GitlabError(Exception):
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 86a8270..d65e06d 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 c85b172..6560d91 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 a65b6e1..c7ace57 100644
--- a/tests/unit/objects/test_statistics.py
+++ b/tests/unit/objects/test_statistics.py
@@ -22,7 +22,6 @@ content = {
@pytest.fixture
def resp_application_statistics():
-
with responses.RequestsMock() as rsps:
rsps.add(
method=responses.GET,