reformat flake8 errors

This commit is contained in:
Jacob Pavlock 2020-07-11 18:15:41 -07:00
parent 16fddbaef6
commit 1db46dfeb6

View file

@ -1,19 +1,32 @@
[flake8] [flake8]
min-version = 2.7 min-version = 2.7
accept-encodings = utf-8 accept-encodings = utf-8
# Errors we ignore: docstring-convention = numpy
# - E121,E123,E126,E24,E704,W503,W504 flake8 default ignores, excluding E226 (have to be listed here to not be overridden) # flake8 errors we ignore. See https://www.flake8rules.com/
# - E221: multiple spaces before operator (used to align visually) ignore =
# - E731: do not assign a lambda expression, use a def # pycodestyle errors
# - F405 object may be undefined, or defined from star imports E121, # continuation line under-indented for hanging indent
# - C901: function/method complexity E123, # closing bracket does not match indentation of opening bracket's line
# - E305: spacing after a declaration (might be nice to change eventually) E126, # continuation line over-indented for hangin indent
# `flake8-future-import` errors we ignore: E221, # multiple spaces before operator (for vertical alignment)
# - FI50: `__future__` import "division" present E226, # missing whitespace around arithmetic operator
# - FI51: `__future__` import "absolute_import" present E241, # multiple spaces after non-arithmetic operators (for vertical alignment)
# - FI12: `__future__` import "with_statement" missing E242, # tabs after ','
# - FI53: `__future__` import "print_function" present E305, # expected 2 blank lines after end of function or class
# - FI14: `__future__` import "unicode_literals" missing E704, # multiple statements on one line
# - FI15: `__future__` import "generator_stop" missing E731, # do not assign a lamba expression, use a def
# - E741: ambiguous variable name E741, # do not use variables name 'I', 'O', or 'l'
ignore=E121,E123,E126,E24,E704,W503,W504,E305,C901,E221,E731,F405,FI50,FI51,FI12,FI53,FI14,FI15,E741 # pycodestyle warnings
W503, # line break occurred before a binary operator
W504, # line break occurred after a binary operator
# pyflakes errors
F405, # name be undefined, or defined from star imports: module
# mccabe error
C901, # function is too complex
# future-import errors
FI12, # `__future__` import "with_statement" missing
FI14, # `__future__` import "unicode_literals" missing
FI15, # `__future__` import "generator_stop" missing
FI50, # `__future__` import "division" present
FI51, # `__future__` import "absolute_import" present
FI53, # `__future__` import "print_function" present