Skip to content

Commit

Permalink
Update tox.ini
Browse files Browse the repository at this point in the history
re-work inline comments in tox.ini flake8 'ignore=' config to avoid invocation error in newer flake8
  • Loading branch information
josh-hadley authored and miguelsousa committed Nov 23, 2022
1 parent 58ddeff commit 9e941d2
Showing 1 changed file with 109 additions and 55 deletions.
164 changes: 109 additions & 55 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,61 +66,115 @@ exclude =
docs/source/conf.py,

# max-line-length=88 # un-comment when E501 is removed from ignore
ignore =
ignore =
# ITEMS BELOW ARE MEDIUM PRIORITY TO FIX AND REMOVE FROM IGNORE LIST
E402, # module level import not at top of file
E711, # comparison to None should be 'if cond is None
E712, # comparison to True should be 'if cond is True:' or 'if cond:'
E713, # test for membership should be 'not in'
E722, # do not use bare 'except'
E741, # ambiguous variable name
F401, # '<module>' imported but unused
F403, # 'from <module> import *' used; unable to detect undefined names
F405, # '<name>' may be undefined, or defined from star imports
# module level import not at top of file
E402,
# comparison to None should be 'if cond is None
E711,
# comparison to True should be 'if cond is True:' or 'if cond:'
E712,
# test for membership should be 'not in'
E713,
# do not use bare 'except'
E722,
# ambiguous variable name
E741,
# '<module>' imported but unused
F401,
# 'from <module> import *' used; unable to detect undefined names
F403,
# '<name>' may be undefined, or defined from star imports
F405,

# ITEMS BELOW ARE LOWER PRIORITY TO FIX AND REMOVE FROM IGNORE LIST
E111, # indentation is not a multiple of four
E114, # indentation is not a multiple of four (comment)
E116, # unexpected indentation (comment)
E117, # over-indented (comment)
E122, # continuation line missing indentation or outdented
E123, # closing bracket does not match indentation of opening bracket's line
E124, # closing bracket does not match visual indentation
E125, # continuation line with same indent as next logical line
E126, # continuation line over-indented for hanging indent
E127, # continuation line over-indented for visual indent
E128, # continuation line under-indented for visual indent
E129, # visually indented line with same indent as next logical line
E131, # continuation line unaligned for hanging indent
E201, # whitespace after '{'
E202, # whitespace before ')'
E203, # whitespace before ','
E211, # whitespace before '('
E221, # multiple spaces before operator
E222, # multiple spaces after operator
E225, # missing whitespace around operator
E226, # missing whitespace around arithmetic operator
E231, # missing whitespace after ','
E241, # multiple spaces after ':'
E251, # unexpected spaces around keyword / parameter equals
E261, # at least two spaces before inline comment
E262, # inline comment should start with '# '
E265, # block comment should start with '# '
E266, # too many leading '#' for block comment
E272, # multiple spaces before keyword
E302, # expected <n> blank lines, found <m>
E303, # too many blank lines (<n>)
E305, # expected 2 blank lines after class or function definition, found <n>
E306, # expected 1 blank line before a nested definition, found <n>
E501, # line too long
E502, # the backslash is redundant between brackets
E701, # multiple statements on one line (colon)
E704, # multiple statements on one line (def)
E731, # do not assign a lambda expression, use a def
F541, # f-string is missing placeholders
W191, # indentation contains tabs
W291, # trailing whitespace
W293, # blank line contains whitespace
W391, # blank line at end of file
W503, # line break before binary operator
W504, # line break after binary operator
# indentation is not a multiple of four
E111,
# indentation is not a multiple of four (comment)
E114,
# unexpected indentation (comment)
E116,
# over-indented (comment)
E117,
# continuation line missing indentation or outdented
E122,
# closing bracket does not match indentation of opening bracket's line
E123,
# closing bracket does not match visual indentation
E124,
# continuation line with same indent as next logical line
E125,
# continuation line over-indented for hanging indent
E126,
# continuation line over-indented for visual indent
E127,
# continuation line under-indented for visual indent
E128,
# visually indented line with same indent as next logical line
E129,
# continuation line unaligned for hanging indent
E131,
# whitespace after '{'
E201,
# whitespace before ')'
E202,
# whitespace before ','
E203,
# whitespace before '('
E211,
# multiple spaces before operator
E221,
# multiple spaces after operator
E222,
# missing whitespace around operator
E225,
# missing whitespace around arithmetic operator
E226,
# missing whitespace after ','
E231,
# multiple spaces after ':'
E241,
# unexpected spaces around keyword / parameter equals
E251,
# at least two spaces before inline comment
E261,
# inline comment should start with '# '
E262,
# block comment should start with '# '
E265,
# too many leading '#' for block comment
E266,
# multiple spaces before keyword
E272,
# expected <n> blank lines, found <m>
E302,
# too many blank lines (<n>)
E303,
# expected 2 blank lines after class or function definition, found <n>
E305,
# expected 1 blank line before a nested definition, found <n>
E306,
# line too long
E501,
# the backslash is redundant between brackets
E502,
# multiple statements on one line (colon)
E701,
# multiple statements on one line (def)
E704,
# do not assign a lambda expression, use a def
E731,
# f-string is missing placeholders
F541,
# indentation contains tabs
W191,
# trailing whitespace
W291,
# blank line contains whitespace
W293,
# blank line at end of file
W391,
# line break before binary operator
W503,
# line break after binary operator
W504,

0 comments on commit 9e941d2

Please sign in to comment.