pre-commit: Add pyupgrade hook
Another day, another useful hook. We also ignore the preceding patch that actually did the work, renaming the incorrect named file in the process. Change-Id: I412827761fbdeb36702ebaf5c1b727c62e629299 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
c5b772db76
commit
0fd107e6c7
@ -1,6 +1,7 @@
|
||||
# You can configure git to automatically use this file with the following config:
|
||||
# git config --global blame.ignoreRevsFile .git-blame-ignore-revs
|
||||
|
||||
c5b772db76c071e493a81105c7d8c0def08b2264 # trivial: Prepare for pyupgrade pre-commit hook
|
||||
ed0314ac76ae58a6621077feb742efd5c14c3a62 # Blacken everything else
|
||||
ac64fdb93c32972575a4523ccb23d0279ef584f5 # Blacken openstackclient.api
|
||||
a3778109d0051a25901569e7bafe54915ab25f82 # Blacken openstack.common
|
@ -17,6 +17,11 @@ repos:
|
||||
- id: check-yaml
|
||||
files: .*\.(yaml|yml)$
|
||||
args: ['--unsafe']
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.15.2
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ['--py38-plus']
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.4.0
|
||||
hooks:
|
||||
|
Loading…
Reference in New Issue
Block a user