style: pyupgrade
This commit is contained in:
@@ -23,3 +23,9 @@ repos:
|
|||||||
- id: mypy
|
- id: mypy
|
||||||
files: ^(cibuildwheel/|test/|bin/projects.py|unit_test/)
|
files: ^(cibuildwheel/|test/|bin/projects.py|unit_test/)
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
||||||
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
|
rev: v2.7.4
|
||||||
|
hooks:
|
||||||
|
- id: pyupgrade
|
||||||
|
args: ["--py36-plus"]
|
||||||
|
|||||||
+2
-2
@@ -81,7 +81,7 @@ def bump_version():
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not found_at_least_one_file_needing_update:
|
if not found_at_least_one_file_needing_update:
|
||||||
print('error: Didn’t find any occurences of “{}” in “{}”'.format(find_pattern, path_pattern))
|
print(f'error: Didn’t find any occurences of “{find_pattern}” in “{path_pattern}”')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print()
|
print()
|
||||||
@@ -94,7 +94,7 @@ def bump_version():
|
|||||||
red="\u001b[31m", green="\u001b[32m", off="\u001b[0m"
|
red="\u001b[31m", green="\u001b[32m", off="\u001b[0m"
|
||||||
))
|
))
|
||||||
|
|
||||||
print('Then commit, and tag as v{}'.format(new_version))
|
print(f'Then commit, and tag as v{new_version}')
|
||||||
|
|
||||||
answer = input('Proceed? [y/N] ').strip()
|
answer = input('Proceed? [y/N] ').strip()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user