From 70a25d6970a3bb33d579e7d6af2bf7c3ce0f75fa Mon Sep 17 00:00:00 2001 From: Uiri Date: Wed, 24 May 2017 17:58:30 -0400 Subject: [PATCH] Update Flake8 Preferences Enable all the errors - the code isn't too bad stylistically. Remove maximum complexity threshold. The code base is rather complex (for now). Set maximum line length to 80. This is slightly more generous than the default value of 79 but less generous than the previously suggested 120. Allow certain lines to be ignored - this is necessary for lines which will trip up the checks in python2 but not python3 or vice versa due to differences between the python versions. --- .flake8 | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.flake8 b/.flake8 index cf91061..825a7d6 100644 --- a/.flake8 +++ b/.flake8 @@ -4,36 +4,14 @@ exclude = .git, # Do not track virtualenv dir venv, + # Ignore folders in gitignore + dist, + build, # Do not track pycache dirs __pycache__, -# A nested complexity of more than 5 is a sign that we should perhaps -# flatten out the code's cyclomatic complexity... -max-complexity = 5 - -# All modern monitors should at least handle 120 chars in a row without wrapping -max-line-length = 120 - -# Default errors ++: http://pep8.readthedocs.io/en/release-1.7.x/intro.html -# (Contains E/W error codes, at least some) -# DXYZ error codes listed here: http://pep257.readthedocs.io/en/latest/error_codes.html -ignore = - D204, # Not Default - E121, - E126, - E133, - E226, - W503, - -# Which errors to enable (display) -#select-errors = - E, - F, - W, - C - -# Ignore '#noqa' pragmas -disable-noqa = True +max-line-length = 80 +ignore = # Output config: show-source = True