introduce pyupgrade, run it in python2-compatible mode

This commit is contained in:
Anthony Sottile 2021-03-29 17:23:34 -07:00
parent 1d5dd156ab
commit 55f29c636f
7 changed files with 14 additions and 7 deletions

View file

@ -13,6 +13,10 @@ repos:
- id: black
args: [--line-length=78]
files: ^src/
- repo: https://github.com/asottile/pyupgrade
rev: v2.11.0
hooks:
- id: pyupgrade
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
hooks: