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.
This commit is contained in:
Uiri
2017-05-24 17:58:30 -04:00
parent 16e4b1d102
commit 70a25d6970

32
.flake8
View File

@@ -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