From 1a860d26a884819e5c8a03325b409d5dc5468509 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Mon, 22 Jan 2018 15:53:11 -0700 Subject: [PATCH] Add pytest/flake8/isort rules --- setup.cfg | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..f03031ce6 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,25 @@ +[tool:pytest] +python_files = test_*.py +testpaths = + tests + +[flake8] +show-source = True +max-line-length = 80 +ignore = + # E123: closing bracket does not match indentation of opening bracket's line + E123 + +[isort] +line_length = 80 +multi_line_output=3 +include_trailing_comma=1 +use_parentheses=1 +known_crunch=cr +sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,CRUNCH,LOCALFOLDER +default_section=THIRDPARTY +not_skip = __init__.py +skip = + # We use tox for this project, so make sure to skip this directory + .tox +