From c325803a1fbb97495707aac89464630563543d69 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:23:23 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#358) --- .pre-commit-config.yaml | 4 ++-- src/pipdeptree/_render/text.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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]