Skip to content

Commit eb0b6ea

Browse files
committed
Update pre-commit hooks
1 parent b9e4af7 commit eb0b6ea

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ repos:
3232
args:
3333
- --trailing-comma=es5
3434
- repo: https://github.com/pre-commit/mirrors-eslint
35-
rev: v9.0.0-beta.0
35+
rev: v9.0.0-beta.1
3636
hooks:
3737
- id: eslint
3838
additional_dependencies:
39-
- "eslint@v9.0.0-beta.0"
40-
- "@eslint/js@v9.0.0-beta.0"
39+
- "eslint@v9.0.0-beta.1"
40+
- "@eslint/js@v9.0.0-beta.1"
4141
- "globals"
4242
files: \.js?$
4343
types: [file]
4444
args:
4545
- --fix
4646
- repo: https://github.com/astral-sh/ruff-pre-commit
47-
rev: 'v0.2.2'
47+
rev: 'v0.3.0'
4848
hooks:
4949
- id: ruff
5050
args: [--fix, --exit-non-zero-on-fix]

debug_toolbar/panels/templates/panel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ def process_context_list(self, context_layers):
154154
# QuerySet would trigger the database: user can run the
155155
# query from SQL Panel
156156
elif isinstance(value, (QuerySet, RawQuerySet)):
157-
temp_layer[
158-
key
159-
] = f"<<{value.__class__.__name__.lower()} of {value.model._meta.label}>>"
157+
temp_layer[key] = (
158+
f"<<{value.__class__.__name__.lower()} of {value.model._meta.label}>>"
159+
)
160160
else:
161161
token = allow_sql.set(False) # noqa: FBT003
162162
try:

docs/changes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Pending
1010
* Display a better error message when the toolbar's requests
1111
return invalid json.
1212
* Render forms with ``as_div`` to silence Django 5.0 deprecation warnings.
13+
* Stayed on top of pre-commit hook updates.
1314

1415
4.3.0 (2024-02-01)
1516
------------------

tests/sync.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Taken from channels.db
33
"""
4+
45
from asgiref.sync import SyncToAsync
56
from django.db import close_old_connections
67

tests/urls_invalid.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Invalid urls.py file for testing"""
2+
23
urlpatterns = []

tests/urls_use_package_urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""urls.py to test using debug_toolbar.urls in include"""
2+
23
from django.urls import include, path
34

45
import debug_toolbar

0 commit comments

Comments
 (0)