mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2025-12-31 10:39:33 -06:00
Compare commits
2 Commits
main
...
pre-commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20dc211564 | ||
|
|
0fb03ef8b5 |
@@ -2,12 +2,12 @@ ci:
|
||||
autoupdate_schedule: monthly
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.6.3
|
||||
rev: v0.14.7
|
||||
hooks:
|
||||
- id: ruff
|
||||
- id: ruff-format
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
exclude: "(codemirror|jquery)"
|
||||
|
||||
@@ -95,8 +95,7 @@ class DebugToolbarExtension:
|
||||
|
||||
if not app.config.get("SECRET_KEY"):
|
||||
raise RuntimeError(
|
||||
"The Flask-DebugToolbar requires the 'SECRET_KEY' config "
|
||||
"var to be set"
|
||||
"The Flask-DebugToolbar requires the 'SECRET_KEY' config var to be set"
|
||||
)
|
||||
|
||||
self._validate_and_configure_toolbar_routes_host(app)
|
||||
@@ -326,7 +325,7 @@ class DebugToolbarExtension:
|
||||
after = ""
|
||||
else:
|
||||
warnings.warn(
|
||||
"Could not insert debug toolbar." " </body> tag not found in response.",
|
||||
"Could not insert debug toolbar. </body> tag not found in response.",
|
||||
stacklevel=1,
|
||||
)
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user