Skip to content

Commit 1bebb55

Browse files
[pre-commit.ci] pre-commit autoupdate (#354)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kemal Zebari <[email protected]>
1 parent 6d4d4a7 commit 1bebb55

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: pyproject-fmt
2121
additional_dependencies: ["tox>=4.12.1"]
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: "v0.3.5"
23+
rev: "v0.3.7"
2424
hooks:
2525
- id: ruff-format
2626
- id: ruff

src/pipdeptree/_models/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def render_as_root(self, *, frozen: bool) -> str:
193193

194194
def render_as_branch(self, *, frozen: bool) -> str:
195195
if not frozen:
196-
req_ver = self.version_spec if self.version_spec else "Any"
196+
req_ver = self.version_spec or "Any"
197197
return f"{self.project_name} [required: {req_ver}, installed: {self.installed_version}]"
198198
return self.render_as_root(frozen=frozen)
199199

src/pipdeptree/_render/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def aux( # noqa: PLR0913, PLR0917
8686
# Without this extra space, bullets will point to the space just before the project name
8787
prefix += " " if use_bullets else ""
8888
next_prefix = prefix
89-
node_str = prefix + bullet + node_str
89+
node_str = prefix + bullet + node_str # noqa: PLR6104
9090
elif include_license:
9191
node_str += " " + node.licenses()
9292

@@ -138,7 +138,7 @@ def aux(
138138
node_str = node.render(parent, frozen=frozen)
139139
if parent:
140140
prefix = " " * indent + ("- " if use_bullets else "")
141-
node_str = prefix + node_str
141+
node_str = prefix + node_str # noqa: PLR6104
142142
elif include_license:
143143
node_str += " " + node.licenses()
144144
result = [node_str]

0 commit comments

Comments
 (0)