Add linter, checker configurations

master
Uğur Özyılmazel 2019-10-11 10:34:01 +03:00
parent 90c11a8d32
commit cd86540a90
No known key found for this signature in database
GPG Key ID: 43CAF9E2A63DF017
3 changed files with 37 additions and 0 deletions

11
.flake8 100644
View File

@ -0,0 +1,11 @@
[flake8]
max-line-length = 119
ignore = W503
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
migrations

9
.isort.cfg 100644
View File

@ -0,0 +1,9 @@
[settings]
line_length = 60
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true
quiet = true
force_grid_wrap = 0
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

17
pyproject.toml 100644
View File

@ -0,0 +1,17 @@
[tool.black]
line-length = 119
py36 = true
skip-string-normalization = true
quiet = true
exclude='''
/(
\.git
| \.hg
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''