From 6b9e1177d4646242942ea3ca97c2387897a3716f Mon Sep 17 00:00:00 2001 From: tomaae <23486452+tomaae@users.noreply.github.com> Date: Fri, 6 Dec 2019 01:16:02 +0100 Subject: [PATCH] updated flake8 and pylint configuration --- setup.cfg | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index b82ce49..8fe822e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,22 +2,20 @@ ignore = W293, # blank line contains whitespace max-line-length = 220 -max-complexity = 20 +max-complexity = 10 exclude = ./.git, ./tests, ./.github, __pycache__, ./docs +# Run with: pylint --rcfile=setup.cfg --load-plugins=pylint.extensions.mccabe custom_components [pylint] disable = duplicate-code, - missing-module-docstring, - missing-class-docstring, - missing-function-docstring, - trailing-whitespace, - bare-except, + too-many-public-methods, useless-return, import-error, - simplifiable-if-expression, too-many-arguments, - too-many-instance-attributes + too-many-instance-attributes, + simplifiable-if-expression, + #bare-except,