Skip to content

Commit 310a41c

Browse files
committed
⚫ Fade to black.
1 parent 245da54 commit 310a41c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

setuptools/tests/test_dist_info.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,18 @@
1919

2020
class TestDistInfo:
2121

22-
metadata_base = DALS("""
22+
metadata_base = DALS(
23+
"""
2324
Metadata-Version: 1.2
2425
Requires-Dist: splort (==4)
2526
Provides-Extra: baz
2627
Requires-Dist: quux (>=1.1); extra == 'baz'
27-
""")
28+
"""
29+
)
2830

2931
@classmethod
3032
def build_metadata(cls, **kwargs):
31-
lines = (
32-
'{key}: {value}\n'.format(**locals())
33-
for key, value in kwargs.items()
34-
)
33+
lines = ('{key}: {value}\n'.format(**locals()) for key, value in kwargs.items())
3534
return cls.metadata_base + ''.join(lines)
3635

3736
@pytest.fixture
@@ -59,8 +58,7 @@ def metadata(self, tmpdir):
5958

6059
def test_distinfo(self, metadata):
6160
dists = dict(
62-
(d.project_name, d)
63-
for d in pkg_resources.find_distributions(metadata)
61+
(d.project_name, d) for d in pkg_resources.find_distributions(metadata)
6462
)
6563

6664
assert len(dists) == 2, dists
@@ -116,7 +114,7 @@ def test_tag_arguments(self, tmp_path):
116114
def test_output_dir(self, tmp_path, keep_egg_info):
117115
config = "[metadata]\nname=proj\nversion=42\n"
118116
(tmp_path / "setup.cfg").write_text(config, encoding="utf-8")
119-
out = (tmp_path / "__out")
117+
out = tmp_path / "__out"
120118
out.mkdir()
121119
opts = ["--keep-egg-info"] if keep_egg_info else []
122120
run_command("dist_info", "--output-dir", out, *opts, cwd=tmp_path)
@@ -133,7 +131,9 @@ class TestWheelCompatibility:
133131
"""Make sure the .dist-info directory produced with the ``dist_info`` command
134132
is the same as the one produced by ``bdist_wheel``.
135133
"""
136-
SETUPCFG = DALS("""
134+
135+
SETUPCFG = DALS(
136+
"""
137137
[metadata]
138138
name = {name}
139139
version = {version}
@@ -149,7 +149,8 @@ class TestWheelCompatibility:
149149
executable-name = my_package.module:function
150150
discover =
151151
myproj = my_package.other_module:function
152-
""")
152+
"""
153+
)
153154

154155
EGG_INFO_OPTS = [
155156
# Related: #3088 #2872

0 commit comments

Comments
 (0)