Skip to content

Commit 6f28f96

Browse files
committed
style: format code
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 968d66f commit 6f28f96

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/univers/version_constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def split(string):
225225
# "<<2.3" and ">>2.3" in VERS constraints which are explicitly not supported in VERS.
226226
elif version and version[0] in "<>!=*":
227227
raise ValueError(f"Unknown comparator in constraint: {constraint_string!r}")
228-
228+
229229
return comparator, version
230230

231231
# default to equality

tests/test_version_constraint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ def test_invert_opertaion(original, inverted):
8888
else:
8989
assert constraint.invert() is None
9090

91+
9192
@pytest.mark.parametrize("spec", ["<<2.3", ">>2.3"])
9293
def test_invalid_vers_comparator_prefixes(spec):
9394
with pytest.raises(ValueError, match="Unknown comparator"):
9495
VersionConstraint.from_string(
9596
string=spec,
9697
version_class=versions.SemverVersion,
97-
)
98+
)

0 commit comments

Comments
 (0)