Skip to content

Commit 53747ef

Browse files
[pre-commit.ci] pre-commit autoupdate (#1815)
1 parent acd69df commit 53747ef

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ repos:
3131
args:
3232
- --trailing-comma=es5
3333
- repo: https://github.com/pre-commit/mirrors-eslint
34-
rev: v8.44.0
34+
rev: v8.45.0
3535
hooks:
3636
- id: eslint
3737
files: \.js?$
3838
types: [file]
3939
args:
4040
- --fix
41-
- repo: https://github.com/charliermarsh/ruff-pre-commit
42-
rev: 'v0.0.277'
41+
- repo: https://github.com/astral-sh/ruff-pre-commit
42+
rev: 'v0.0.278'
4343
hooks:
4444
- id: ruff
4545
args: [--fix, --exit-non-zero-on-fix]
4646
- repo: https://github.com/psf/black
47-
rev: 23.3.0
47+
rev: 23.7.0
4848
hooks:
4949
- id: black
5050
language_version: python3

debug_toolbar/panels/redirects.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ def process_request(self, request):
1818
if 300 <= response.status_code < 400:
1919
redirect_to = response.get("Location")
2020
if redirect_to:
21-
status_line = "{} {}".format(
22-
response.status_code, response.reason_phrase
23-
)
21+
status_line = f"{response.status_code} {response.reason_phrase}"
2422
cookies = response.cookies
2523
context = {"redirect_to": redirect_to, "status_line": status_line}
2624
# Using SimpleTemplateResponse avoids running global context processors.

0 commit comments

Comments
 (0)