From 3f84f1bb805691b645fac2d1a41901abefccb17e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 7 Mar 2022 23:08:28 +0000 Subject: [PATCH 1/2] chore(deps): update black to v22 --- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7130cfec1..3e4b548ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/psf/black - rev: 21.12b0 + rev: 22.1.0 hooks: - id: black - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook diff --git a/requirements-lint.txt b/requirements-lint.txt index 8b9c323f3..6e5e66d7e 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,5 +1,5 @@ argcomplete==2.0.0 -black==21.12b0 +black==22.1.0 flake8==4.0.1 isort==5.10.1 mypy==0.931 From 93d4403f0e46ed354cbcb133821d00642429532f Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Thu, 10 Mar 2022 14:04:57 +1100 Subject: [PATCH 2/2] style: reformat for black v22 --- gitlab/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/client.py b/gitlab/client.py index 9d1eebdd9..6737abdc1 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -701,7 +701,7 @@ def http_request( result.status_code in [500, 502, 503, 504] and retry_transient_errors ): if max_retries == -1 or cur_retries < max_retries: - wait_time = 2 ** cur_retries * 0.1 + wait_time = 2**cur_retries * 0.1 if "Retry-After" in result.headers: wait_time = int(result.headers["Retry-After"]) cur_retries += 1