Merge pull request #542 from jazzband/pre-commit-ci-update-config

This commit is contained in:
Hugo van Kemenade 2022-12-12 23:19:58 +02:00 committed by GitHub
commit 169c0f4994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -1,20 +1,20 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.11.1
hooks:
- id: isort
args: ['--profile', 'black', '--check-only', '--diff']
files: ^((model_utils|tests)/)|setup.py
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
args: ['--ignore=E402,E501,E731,W503']
files: ^(model_utils|tests)/
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]

View file

@ -43,10 +43,10 @@ commands =
[flake8]
ignore =
E731 ; do not assign a lambda expression, use a def
W503 ; line break before binary operator
E402 ; module level import not at top of file
E501 ; line too long
E731
W503
E402
E501
[testenv:isort]
basepython = python3.8