From 2ccc943b69c5f404781a9e397dd30e4b28ff3384 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 22 Nov 2018 01:40:57 +0100 Subject: [PATCH] tox: add flake8 for style and other checking --- setup.cfg | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index aa39f3d0..19224946 100644 --- a/setup.cfg +++ b/setup.cfg @@ -64,8 +64,21 @@ source = src [mypy] ignore_missing_imports = true + +[flake8] +# please note that the values are adjusted so that they do not cause failures +# with existing code. if you want to change them, you should first fix all +# flake8 failures that appear with your change. +ignore = + W503, + F401,F821,F841, + E712 +# line length long term target: 120 +max-line-length = 150 +exclude = build,dist,.git,.idea,.cache,.tox + [tox:tox] -envlist = py36 +envlist = py36,flake8 [testenv] deps = @@ -74,3 +87,8 @@ deps = pytest-mock pytest-faulthandler commands=pytest + +[testenv:flake8] +deps = + flake8 +commands=flake8 src tests