mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-12 15:51:00 +00:00
Merge pull request #542 from jazzband/pre-commit-ci-update-config
This commit is contained in:
commit
169c0f4994
2 changed files with 7 additions and 7 deletions
|
|
@ -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]
|
||||
|
|
|
|||
8
tox.ini
8
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue