style: add pyupgrade check, 2.7+

This commit is contained in:
Henry Schreiner
2021-07-12 15:01:19 -04:00
committed by Henry Schreiner
parent 11e12fe455
commit 0e2e003508
5 changed files with 22 additions and 17 deletions

View File

@@ -30,6 +30,11 @@ repos:
- id: fix-encoding-pragma
exclude: ^noxfile.py$
- repo: https://github.com/asottile/pyupgrade
rev: v2.21.0
hooks:
- id: pyupgrade
# Black, the code formatter, natively supports pre-commit
- repo: https://github.com/psf/black
rev: 21.6b0