Skip to content

Commit 3d6f9b0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4e22af6 commit 3d6f9b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

debug_toolbar/panels/sql/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def contrasting_color_generator():
132132
"""
133133

134134
def rgb_to_hex(rgb):
135-
return "#%02x%02x%02x" % tuple(rgb)
135+
return "#{:02x}{:02x}{:02x}".format(*tuple(rgb))
136136

137137
triples = [
138138
(1, 0, 0),

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ packages = ["debug_toolbar"]
5555
[tool.hatch.version]
5656
path = "debug_toolbar/__init__.py"
5757

58-
[tool.ruff.isort]
59-
combine-as-imports = true
60-
6158
[tool.coverage.html]
6259
skip_covered = true
6360
skip_empty = true
@@ -75,6 +72,9 @@ source = ["src", ".tox/*/site-packages"]
7572
fail_under = 94
7673
show_missing = true
7774

75+
[tool.ruff.isort]
76+
combine-as-imports = true
77+
7878
[tool.ruff]
7979
select = [
8080
# flake8/Pyflakes

0 commit comments

Comments
 (0)