Remove setup.cfg, move relevant flake8 arguments into pre-commit config. Update pre-commit hooks.
This commit is contained in:
parent
c4596c25c6
commit
07170082e3
2 changed files with 4 additions and 15 deletions
|
@ -1,15 +1,17 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v1.3.0
|
rev: v2.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
args: [--max-line-length=120, --exclude=*/migrations/*]
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
- id: check-toml
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder_python_imports
|
||||||
rev: v1.0.1
|
rev: v1.6.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
types: [file, python]
|
types: [file, python]
|
||||||
|
|
13
setup.cfg
13
setup.cfg
|
@ -1,13 +0,0 @@
|
||||||
[flake8]
|
|
||||||
ignore = E226,E302,E41
|
|
||||||
max-line-length = 160
|
|
||||||
max-complexity = 10
|
|
||||||
exclude = */migrations/*
|
|
||||||
|
|
||||||
[isort]
|
|
||||||
atomic = true
|
|
||||||
multi_line_output = 5
|
|
||||||
line_length = 160
|
|
||||||
indent = ' '
|
|
||||||
combine_as_imports = true
|
|
||||||
skip = wsgi.py,.eggs,setup.py
|
|
Loading…
Add table
Reference in a new issue