Skip to content

Commit 5c112fe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 519259f commit 5c112fe

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
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: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@
151151
transition: none;
152152
}
153153

154-
#djDebug button, #djDebug .djButton {
154+
#djDebug button,
155+
#djDebug .djButton {
155156
background-color: var(--djdt-background-color);
156157
border: 1px solid var(--djdt-button-border-color);
157158
border-radius: 4px;
@@ -162,16 +163,19 @@
162163
text-decoration: none;
163164
}
164165

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

169-
#djDebug button:hover, #djDebug .djButton:hover {
171+
#djDebug button:hover,
172+
#djDebug .djButton:hover {
170173
border-color: var(--djdt-button-hover-border-color);
171174
cursor: pointer;
172175
}
173176

174-
#djDebug button:active, #djDebug .djButton:active {
177+
#djDebug button:active,
178+
#djDebug .djButton:active {
175179
border: 1px solid #aaa;
176180
}
177181

@@ -462,7 +466,7 @@
462466

463467
#djDebug .djdt-badge.djdt-badge-success {
464468
color: #fff;
465-
background-color: #05A53F;
469+
background-color: #05a53f;
466470
}
467471

468472
#djDebug .djdt-panelContent .djDebugClose {

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)