Skip to content

Commit 633954d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 18924ee commit 633954d

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

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 {
@@ -1084,7 +1088,9 @@ To regenerate:
10841088
}
10851089

10861090
#djDebug .djDetailsRow {
1087-
background-color: var(--djdt-panel-content-table-alternate-background-color);
1091+
background-color: var(
1092+
--djdt-panel-content-table-alternate-background-color
1093+
);
10881094
}
10891095

10901096
#djDebug .djDebugRowWarning .djdt-time {

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)