diff --git a/debug_toolbar/panels/sql/utils.py b/debug_toolbar/panels/sql/utils.py index efd7c1637..120674c96 100644 --- a/debug_toolbar/panels/sql/utils.py +++ b/debug_toolbar/panels/sql/utils.py @@ -132,7 +132,7 @@ def contrasting_color_generator(): """ def rgb_to_hex(rgb): - return "#%02x%02x%02x" % tuple(rgb) + return "#{:02x}{:02x}{:02x}".format(*tuple(rgb)) triples = [ (1, 0, 0), diff --git a/pyproject.toml b/pyproject.toml index e19475f46..b656d45ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,9 +55,6 @@ packages = ["debug_toolbar"] [tool.hatch.version] path = "debug_toolbar/__init__.py" -[tool.ruff.isort] -combine-as-imports = true - [tool.coverage.html] skip_covered = true skip_empty = true @@ -75,6 +72,9 @@ source = ["src", ".tox/*/site-packages"] fail_under = 94 show_missing = true +[tool.ruff.isort] +combine-as-imports = true + [tool.ruff] select = [ # flake8/Pyflakes