From d1253dc91f91c1d22aa8874cf76ec14a4b2fea51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 13 Aug 2018 09:48:22 +0200 Subject: [PATCH] add python tooling configuration --- pyproject.toml | 10 ++++++++++ setup.cfg | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..274f7db58 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,10 @@ +[tool.black] +line-length = 88 +py36 = true +include = '\.pyi?$' +exclude = ''' +/( + \.git + | \.mypy_cache +)/ +''' diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..4a149e661 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,17 @@ +[wheel] +universal = 1 + +[pycodestyle] +max-line-length = 88 +ignore = E501,E741,W503 + +[flake8] +max-line-length = 88 +ignore = E501,E741,W503 +exclude = .git,__pycache__,docs/source/conf.py,old,build,dist + +[mypy] +warn_redundant_casts = true +disallow_untyped_calls = true +disallow_untyped_defs = true +no_implicit_optional = true