Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1691)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] auto fixes from pre-commit.com hooks

updates:
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](asottile/pyupgrade@v3.1.0...v3.2.0)
- [github.com/adamchainz/django-upgrade: 1.10.0 → 1.11.0](adamchainz/django-upgrade@1.10.0...1.11.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.4](pre-commit/mirrors-prettier@v3.0.0-alpha.2...v3.0.0-alpha.4)
- [github.com/pre-commit/mirrors-eslint: v8.25.0 → v8.26.0](pre-commit/mirrors-eslint@v8.25.0...v8.26.0)

for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 2, 2022
1 parent 8e3335a commit 4c5ac3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ repos:
hooks:
- id: doc8
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.2.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.10.0
rev: 1.11.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
Expand All @@ -38,14 +38,14 @@ repos:
- id: rst-backticks
- id: rst-directive-colons
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.2
rev: v3.0.0-alpha.4
hooks:
- id: prettier
types_or: [javascript, css]
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.25.0
rev: v8.26.0
hooks:
- id: eslint
files: \.js?$
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/panels/history/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def generate_stats(self, request, response):
if (
not data
and request.body
and request.META.get("CONTENT_TYPE") == "application/json"
and request.headers.get("content-type") == "application/json"
):
try:
data = json.loads(request.body)
Expand Down

0 comments on commit 4c5ac3f

Please sign in to comment.