Skip to content

Commit 2987cd4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f49750d commit 2987cd4

File tree

5 files changed

+28
-22
lines changed

5 files changed

+28
-22
lines changed

debug_toolbar/panels/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from pprint import pformat
2+
13
from django.utils.translation import gettext_lazy as _
24
from django.views.debug import get_default_exception_reporter_filter
3-
from pprint import pformat
5+
46
from debug_toolbar.panels import Panel
5-
from debug_toolbar.sanitize import force_str
67

78
get_safe_settings = get_default_exception_reporter_filter().get_safe_settings
89

debug_toolbar/panels/sql/utils.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,15 @@ def contrasting_color_generator():
137137
and then vary subsequent bits systematically.
138138
"""
139139

140-
return cycle([
141-
"#0C375A",
142-
"#21A0A0",
143-
"#FFC300",
144-
"#FF5733",
145-
"#C70039",
146-
"#900C3F",
147-
"#581845",
148-
"#F1C40F"
149-
])
140+
return cycle(
141+
[
142+
"#0C375A",
143+
"#21A0A0",
144+
"#FFC300",
145+
"#FF5733",
146+
"#C70039",
147+
"#900C3F",
148+
"#581845",
149+
"#F1C40F",
150+
]
151+
)

debug_toolbar/static/debug_toolbar/css/toolbar.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@
153153
transition: none;
154154
}
155155

156-
#djDebug button, #djDebug .djButton {
156+
#djDebug button,
157+
#djDebug .djButton {
157158
background-color: var(--djdt-background-color);
158159
border: 1px solid var(--djdt-button-border-color);
159160
border-radius: 4px;
@@ -164,16 +165,19 @@
164165
text-decoration: none;
165166
}
166167

167-
#djDebug[data-theme="light"] button, #djDebug[data-theme="light"] .djButton {
168+
#djDebug[data-theme="light"] button,
169+
#djDebug[data-theme="light"] .djButton {
168170
box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
169171
}
170172

171-
#djDebug button:hover, #djDebug .djButton:hover {
173+
#djDebug button:hover,
174+
#djDebug .djButton:hover {
172175
border-color: var(--djdt-button-hover-border-color);
173176
cursor: pointer;
174177
}
175178

176-
#djDebug button:active, #djDebug .djButton:active {
179+
#djDebug button:active,
180+
#djDebug .djButton:active {
177181
border: 1px solid #aaa;
178182
}
179183

@@ -464,7 +468,7 @@
464468

465469
#djDebug .djdt-badge.djdt-badge-success {
466470
color: #fff;
467-
background-color: #05A53F;
471+
background-color: #05a53f;
468472
}
469473

470474
#djDebug .djdt-panelContent .djDebugClose {
@@ -1090,7 +1094,9 @@ To regenerate:
10901094
}
10911095

10921096
#djDebug .djDetailsRow {
1093-
background-color: var(--djdt-djdt-panel-content-table-strip-background-color);
1097+
background-color: var(
1098+
--djdt-djdt-panel-content-table-strip-background-color
1099+
);
10941100
}
10951101

10961102
#djDebug .djDebugRowWarning .djdt-time {

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ const djdt = {
120120
for (const el of this.querySelectorAll(".djDebugCollapsed")) {
121121
$$.toggle(el, !isSelected);
122122
}
123-
for (const el of this.querySelectorAll(
124-
".djDebugUncollapsed"
125-
)) {
123+
for (const el of this.querySelectorAll(".djDebugUncollapsed")) {
126124
$$.toggle(el, isSelected);
127125
}
128126
});

debug_toolbar/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def tidy_stacktrace(stack: list[stubs.InspectStack]) -> stubs.TidyStackTrace:
6969
return trace
7070

7171

72-
7372
def render_stacktrace(trace: stubs.TidyStackTrace) -> SafeString:
7473
show_locals = dt_settings.get_config()["ENABLE_STACKTRACES_LOCALS"]
7574
html = ""

0 commit comments

Comments
 (0)