Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 17, 2023
1 parent acd69df commit 53747ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ repos:
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.44.0
rev: v8.45.0
hooks:
- id: eslint
files: \.js?$
types: [file]
args:
- --fix
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.277'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.278'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
Expand Down
4 changes: 1 addition & 3 deletions debug_toolbar/panels/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def process_request(self, request):
if 300 <= response.status_code < 400:
redirect_to = response.get("Location")
if redirect_to:
status_line = "{} {}".format(
response.status_code, response.reason_phrase
)
status_line = f"{response.status_code} {response.reason_phrase}"
cookies = response.cookies
context = {"redirect_to": redirect_to, "status_line": status_line}
# Using SimpleTemplateResponse avoids running global context processors.
Expand Down

0 comments on commit 53747ef

Please sign in to comment.