Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Mar 5, 2024
1 parent b9e4af7 commit eb0b6ea
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -32,19 +32,19 @@ repos:
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-beta.0
rev: v9.0.0-beta.1
hooks:
- id: eslint
additional_dependencies:
- "eslint@v9.0.0-beta.0"
- "@eslint/js@v9.0.0-beta.0"
- "eslint@v9.0.0-beta.1"
- "@eslint/js@v9.0.0-beta.1"
- "globals"
files: \.js?$
types: [file]
args:
- --fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.2.2'
rev: 'v0.3.0'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
6 changes: 3 additions & 3 deletions debug_toolbar/panels/templates/panel.py
Expand Up @@ -154,9 +154,9 @@ def process_context_list(self, context_layers):
# QuerySet would trigger the database: user can run the
# query from SQL Panel
elif isinstance(value, (QuerySet, RawQuerySet)):
temp_layer[
key
] = f"<<{value.__class__.__name__.lower()} of {value.model._meta.label}>>"
temp_layer[key] = (
f"<<{value.__class__.__name__.lower()} of {value.model._meta.label}>>"
)
else:
token = allow_sql.set(False) # noqa: FBT003
try:
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Expand Up @@ -10,6 +10,7 @@ Pending
* Display a better error message when the toolbar's requests
return invalid json.
* Render forms with ``as_div`` to silence Django 5.0 deprecation warnings.
* Stayed on top of pre-commit hook updates.

4.3.0 (2024-02-01)
------------------
Expand Down
1 change: 1 addition & 0 deletions tests/sync.py
@@ -1,6 +1,7 @@
"""
Taken from channels.db
"""

from asgiref.sync import SyncToAsync
from django.db import close_old_connections

Expand Down
1 change: 1 addition & 0 deletions tests/urls_invalid.py
@@ -1,2 +1,3 @@
"""Invalid urls.py file for testing"""

urlpatterns = []
1 change: 1 addition & 0 deletions tests/urls_use_package_urls.py
@@ -1,4 +1,5 @@
"""urls.py to test using debug_toolbar.urls in include"""

from django.urls import include, path

import debug_toolbar
Expand Down

0 comments on commit eb0b6ea

Please sign in to comment.