+13
-6
@@ -1,10 +1,4 @@
|
||||
repos:
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.8.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
exclude: cibuildwheel/resources/
|
||||
additional_dependencies: [flake8-bugbear]
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.4.0
|
||||
@@ -23,3 +17,16 @@ 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"]
|
||||
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.8.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
exclude: cibuildwheel/resources/
|
||||
additional_dependencies: [flake8-bugbear]
|
||||
|
||||
+2
-2
@@ -81,7 +81,7 @@ def bump_version():
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user