Skip to content

Commit

Permalink
Placate ruff about version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 22, 2024
1 parent 94292fb commit c073cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modepy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


VERSION_TEXT = metadata.version("modepy")
_match = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
_match = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
assert _match is not None
VERSION_STATUS = _match.group(2)
VERSION = tuple(int(nr) for nr in _match.group(1).split("."))

0 comments on commit c073cea

Please sign in to comment.