Skip to content

Commit 1d20129

Browse files
[pre-commit.ci] pre-commit autoupdate (#422)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4768464 commit 1d20129

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.4.3"
23+
rev: "v2.4.3"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.7.0"
27+
rev: "v0.7.1"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

src/pipdeptree/_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def render_duplicated_dist_metadata_text(
120120
print( # noqa: T201
121121
(
122122
f" {dist.metadata['Name']:<32} {dist.version:<16} (using {first_seen.version},"
123-
f" \"{first_seen.locate_file('')}\")"
123+
f' "{first_seen.locate_file("")}")'
124124
),
125125
file=sys.stderr,
126126
)

src/pipdeptree/_models/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def licenses(self) -> str:
5050
if len(license_strs) == 0:
5151
return self.UNKNOWN_LICENSE_STR
5252

53-
return f'({", ".join(license_strs)})'
53+
return f"({', '.join(license_strs)})"
5454

5555
@abstractmethod
5656
def render_as_root(self, *, frozen: bool) -> str:

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def fake_dist(tmp_path: Path) -> Path:
7777
fake_dist_path.mkdir(parents=True)
7878
fake_metadata = Path(fake_dist_path) / "METADATA"
7979
with fake_metadata.open("w", encoding=locale.getpreferredencoding(False)) as f:
80-
f.write("Metadata-Version: 2.3\n" "Name: bar\n" "Version: 2.4.5\n")
80+
f.write("Metadata-Version: 2.3\nName: bar\nVersion: 2.4.5\n")
8181

8282
return fake_dist_path
8383

tests/test_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_local_only(tmp_path: Path, mocker: MockerFixture, capfd: pytest.Capture
2424
fake_dist.mkdir()
2525
fake_metadata = Path(fake_dist) / "METADATA"
2626
with fake_metadata.open("w") as f:
27-
f.write("Metadata-Version: 2.3\n" "Name: foo\n" "Version: 1.2.5\n")
27+
f.write("Metadata-Version: 2.3\nName: foo\nVersion: 1.2.5\n")
2828

2929
cmd = [str(result.creator.exe.parent / "python3"), "--local-only"]
3030
mocker.patch("pipdeptree._discovery.sys.prefix", venv_path)

tests/test_non_host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_custom_interpreter_ensure_pythonpath_envar_is_honored(
147147
fake_dist.mkdir(parents=True)
148148
fake_metadata = fake_dist / "METADATA"
149149
with fake_metadata.open("w") as f:
150-
f.write("Metadata-Version: 2.3\n" "Name: foo\n" "Version: 1.2.3\n")
150+
f.write("Metadata-Version: 2.3\nName: foo\nVersion: 1.2.3\n")
151151
cmd = ["", f"--python={result.creator.exe}", "--all", "--depth", "0"]
152152
mocker.patch("pipdeptree._discovery.sys.argv", cmd)
153153
monkeypatch.setenv("PYTHONPATH", str(another_path))

0 commit comments

Comments
 (0)