From cd86540a907b1e6e93760fe3c83fd46e7e133cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur=20=C3=96zy=C4=B1lmazel?= Date: Fri, 11 Oct 2019 10:34:01 +0300 Subject: [PATCH] Add linter, checker configurations --- .flake8 | 11 +++++++++++ .isort.cfg | 9 +++++++++ pyproject.toml | 17 +++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .flake8 create mode 100644 .isort.cfg create mode 100644 pyproject.toml diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..28ed542 --- /dev/null +++ b/.flake8 @@ -0,0 +1,11 @@ +[flake8] +max-line-length = 119 +ignore = W503 +exclude = + .git, + __pycache__, + docs/source/conf.py, + old, + build, + dist, + migrations diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000..10931e8 --- /dev/null +++ b/.isort.cfg @@ -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 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..17b0389 --- /dev/null +++ b/pyproject.toml @@ -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 +)/ +'''