diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46aa170..35b7a2b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.7.0" + rev: "1.8.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.12.1"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.7" + rev: "v0.4.1" hooks: - id: ruff-format - id: ruff diff --git a/src/pipdeptree/_render/text.py b/src/pipdeptree/_render/text.py index 18a26f2..efa5a02 100644 --- a/src/pipdeptree/_render/text.py +++ b/src/pipdeptree/_render/text.py @@ -86,7 +86,7 @@ def _render_text_with_unicode( # Without this extra space, bullets will point to the space just before the project name prefix += " " if use_bullets else "" next_prefix = prefix - node_str = prefix + bullet + node_str # noqa: PLR6104 + node_str = prefix + bullet + node_str elif include_license: node_str += " " + node.licenses() @@ -138,7 +138,7 @@ def _render_text_without_unicode( node_str = node.render(parent, frozen=frozen) if parent: prefix = " " * indent + ("- " if use_bullets else "") - node_str = prefix + node_str # noqa: PLR6104 + node_str = prefix + node_str elif include_license: node_str += " " + node.licenses() result = [node_str]