From f9a54af9b1cfa5a303d4bbacf24dc1a0f28c1ba5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 25 Apr 2019 20:59:41 +1000 Subject: [PATCH 1/2] Moved flake settings to setup.cfg --- Makefile | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dadbb44999..72e8d8e818 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ clean: rm -f .coverage style: - flake8 InvenTree --ignore=C901,E501 + flake8 InvenTree test: python InvenTree/manage.py check diff --git a/setup.cfg b/setup.cfg index ea418b2daf..ceca732660 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,6 @@ ignore = # - W293 - blank lines contain whitespace W293, # - E501 - line too long (82 characters) - E501 + E501, exclude = .git,__pycache__ max-complexity = 10 From a3bbd5f8cb3fe173f60d9729424fcccb9b9abd1d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 25 Apr 2019 21:09:02 +1000 Subject: [PATCH 2/2] Increase allowed complexity --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index ceca732660..f6f50b0c03 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,6 @@ ignore = # - W293 - blank lines contain whitespace W293, # - E501 - line too long (82 characters) - E501, + E501 exclude = .git,__pycache__ -max-complexity = 10 +max-complexity = 20