Fix formatting of replacement

Black requires that there be double quotes instead of single
This commit is contained in:
Serene-Arc 2024-06-01 14:27:38 +10:00 committed by Šarūnas Nejus
parent ff3bf918b0
commit 591d052647
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435

View file

@ -19,7 +19,7 @@ VERSION_LOCS = [
[ [
( (
r'__version__\s*=\s*[\'"]([0-9\.]+)[\'"]', r'__version__\s*=\s*[\'"]([0-9\.]+)[\'"]',
"__version__ = '{version}'", '__version__ = "{version}"',
) )
], ],
), ),
@ -28,11 +28,11 @@ VERSION_LOCS = [
[ [
( (
r'version\s*=\s*[\'"]([0-9\.]+)[\'"]', r'version\s*=\s*[\'"]([0-9\.]+)[\'"]',
"version = '{minor}'", 'version = "{minor}"',
), ),
( (
r'release\s*=\s*[\'"]([0-9\.]+)[\'"]', r'release\s*=\s*[\'"]([0-9\.]+)[\'"]',
"release = '{version}'", 'release = "{version}"',
), ),
], ],
), ),
@ -41,7 +41,7 @@ VERSION_LOCS = [
[ [
( (
r'\s*version\s*=\s*[\'"]([0-9\.]+)[\'"]', r'\s*version\s*=\s*[\'"]([0-9\.]+)[\'"]',
" version='{version}',", ' version="{version}",',
) )
], ],
), ),