chore: add pyupgrade pre-commit hook

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
This commit is contained in:
jo 2022-11-19 17:00:33 +01:00 committed by Marge
parent 5e2df11fb6
commit 7768ea77a4
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,13 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py37-plus]
exclude: ^(api/.*/migrations/.*)
- repo: https://github.com/psf/black
rev: 22.10.0
hooks: