build: add isort and pyupgrade to pre-commit

This commit is contained in:
Frédéric Péters 2021-11-29 13:40:09 +01:00
parent bf9049d87d
commit e8a9d06b75
1 changed files with 10 additions and 0 deletions

View File

@ -6,3 +6,13 @@ repos:
hooks:
- id: black
args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110']
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
args: ['--profile', 'black', '--line-length', '110']
- repo: https://github.com/asottile/pyupgrade
rev: v2.20.0
hooks:
- id: pyupgrade
args: ['--keep-percent-format', '--py37-plus']