Skip to content

Commit 074dbf2

Browse files
pre-commit-ci[bot]abn
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0fc9aca commit 074dbf2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/poetry/core/packages/utils/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ def create_nested_marker(
243243

244244
marker = f'{name} == "{constraint.text}"'
245245
else:
246-
assert isinstance(
247-
constraint, VersionRange
248-
), f"Unexpected constraint of type {type(constraint)}"
246+
assert isinstance(constraint, VersionRange), (
247+
f"Unexpected constraint of type {type(constraint)}"
248+
)
249249
min_name = max_name = name
250250

251251
parts = []

tests/masonry/builders/test_sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,5 +777,5 @@ def test_sdist_mtime_set_from_envvar_not_int(
777777
assert sdist.exists()
778778

779779
assert (
780-
"SOURCE_DATE_EPOCH environment variable is not an " "int, using mtime=0"
780+
"SOURCE_DATE_EPOCH environment variable is not an int, using mtime=0"
781781
) in caplog.messages

tests/spdx/test_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ def test_valid_trove_classifiers() -> None:
6464
classifier = license.classifier
6565
valid_classifier = classifier in trove_classifiers.classifiers
6666

67-
assert (
68-
valid_classifier
69-
), f"'{license_id}' returns invalid classifier '{classifier}'"
67+
assert valid_classifier, (
68+
f"'{license_id}' returns invalid classifier '{classifier}'"
69+
)

0 commit comments

Comments
 (0)