Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 16, 2023
1 parent 4e22af6 commit 3d6f9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debug_toolbar/panels/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3d6f9b0

Please sign in to comment.