Skip to content

Commit 8ae5c43

Browse files
Secrusradoering
authored andcommitted
update pre-commit config and fix issues
1 parent 2065a4f commit 8ae5c43

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ repos:
5757
)
5858
5959
- repo: https://github.com/psf/black
60-
rev: 23.1.0
60+
rev: 23.3.0
6161
hooks:
6262
- id: black
6363

tests/masonry/builders/test_complete.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,32 +146,24 @@ def test_complete(no_vcs: bool) -> None:
146146

147147
entry_points = zipf.read("my_package-1.2.3.dist-info/entry_points.txt")
148148

149-
assert (
150-
entry_points.decode()
151-
== """\
149+
assert entry_points.decode() == """\
152150
[console_scripts]
153151
extra-script=my_package.extra:main[time]
154152
my-2nd-script=my_package:main2
155153
my-script=my_package:main
156154
157155
"""
158-
)
159156
wheel_data = zipf.read("my_package-1.2.3.dist-info/WHEEL").decode()
160157

161-
assert (
162-
wheel_data
163-
== f"""\
158+
assert wheel_data == f"""\
164159
Wheel-Version: 1.0
165160
Generator: poetry-core {__version__}
166161
Root-Is-Purelib: true
167162
Tag: py3-none-any
168163
"""
169-
)
170164
wheel_data = zipf.read("my_package-1.2.3.dist-info/METADATA").decode()
171165

172-
assert (
173-
wheel_data
174-
== """\
166+
assert wheel_data == """\
175167
Metadata-Version: 2.1
176168
Name: my-package
177169
Version: 1.2.3
@@ -208,7 +200,6 @@ def test_complete(no_vcs: bool) -> None:
208200
==========
209201
210202
"""
211-
)
212203
actual_records = zipf.read("my_package-1.2.3.dist-info/RECORD").decode()
213204

214205
# The SHA hashes vary per operating systems.

0 commit comments

Comments
 (0)