Skip to content

Commit

Permalink
pre-commit: Add pyupgrade hook
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stephenfin committed May 3, 2024
1 parent c5b772d commit 0fd107e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .git-ignore-blame-revs → .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0fd107e

Please sign in to comment.