[pre-commit.ci] pre-commit autoupdate (#358)

This commit is contained in:
pre-commit-ci[bot] 2024-04-22 10:23:23 -07:00 committed by GitHub
parent 64f5789c66
commit c325803a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -15,12 +15,12 @@ repos:
- id: tox-ini-fmt - id: tox-ini-fmt
args: ["-p", "fix"] args: ["-p", "fix"]
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.7.0" rev: "1.8.0"
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
additional_dependencies: ["tox>=4.12.1"] additional_dependencies: ["tox>=4.12.1"]
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.7" rev: "v0.4.1"
hooks: hooks:
- id: ruff-format - id: ruff-format
- id: ruff - id: ruff

View File

@ -86,7 +86,7 @@ def _render_text_with_unicode(
# Without this extra space, bullets will point to the space just before the project name # Without this extra space, bullets will point to the space just before the project name
prefix += " " if use_bullets else "" prefix += " " if use_bullets else ""
next_prefix = prefix next_prefix = prefix
node_str = prefix + bullet + node_str # noqa: PLR6104 node_str = prefix + bullet + node_str
elif include_license: elif include_license:
node_str += " " + node.licenses() node_str += " " + node.licenses()
@ -138,7 +138,7 @@ def _render_text_without_unicode(
node_str = node.render(parent, frozen=frozen) node_str = node.render(parent, frozen=frozen)
if parent: if parent:
prefix = " " * indent + ("- " if use_bullets else "") prefix = " " * indent + ("- " if use_bullets else "")
node_str = prefix + node_str # noqa: PLR6104 node_str = prefix + node_str
elif include_license: elif include_license:
node_str += " " + node.licenses() node_str += " " + node.licenses()
result = [node_str] result = [node_str]