Silence spurious warning

This commit is contained in:
Kovid Goyal 2025-03-15 08:39:01 +05:30
parent 464b68bd98
commit cd3d151e7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -136,7 +136,7 @@ class PublishPreview(Command):
sub_commands = ['stage1', 'stage2', 'sdist'] sub_commands = ['stage1', 'stage2', 'sdist']
def pre_sub_commands(self, opts): def pre_sub_commands(self, opts):
version = tuple(map(int, __version__.split('.'))) version = tuple(map(int, __version__.split('.'))) # noqa: RUF048
if version[2] < 100: if version[2] < 100:
raise SystemExit('Must set calibre version to have patch level greater than 100') raise SystemExit('Must set calibre version to have patch level greater than 100')
require_clean_git() require_clean_git()