style: pyupgrade

This commit is contained in:
Henry Fredrick Schreiner
2021-01-02 19:11:40 -05:00
parent 2a73fee411
commit 7e80e4b0b6
3 changed files with 8 additions and 4 deletions
+6
View File
@@ -23,3 +23,9 @@ repos:
- id: mypy
files: ^(cibuildwheel/|test/|bin/projects.py|unit_test/)
pass_filenames: false
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.4
hooks:
- id: pyupgrade
args: ["--py36-plus"]
+2 -2
View File
@@ -81,7 +81,7 @@ def bump_version():
)
if not found_at_least_one_file_needing_update:
print('error: Didnt find any occurences of “{}” in “{}'.format(find_pattern, path_pattern))
print(f'error: Didnt find any occurences of “{find_pattern}” in “{path_pattern}')
exit(1)
print()
@@ -94,7 +94,7 @@ def bump_version():
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()
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from setuptools import setup
setup()