2018-07-20 13:47:15 -04:00
|
|
|
[tool:pytest]
|
2016-07-17 14:09:11 +02:00
|
|
|
flake8-max-line-length = 180
|
2016-07-15 09:34:01 +02:00
|
|
|
flake8-ignore =
|
2016-08-10 17:29:02 +03:00
|
|
|
*.py E122
|
2018-08-30 23:06:30 -05:00
|
|
|
*.py E203 # E203 whitespace before ':'
|
2016-07-20 22:07:45 +02:00
|
|
|
*.py E402
|
2018-08-21 14:15:35 +02:00
|
|
|
*.py W503 # line break before binary operators is a good thing
|
2020-05-05 06:42:28 -04:00
|
|
|
*.py E731 # it's OK to assign lambda to variable
|
2018-07-21 22:19:25 +02:00
|
|
|
xonsh/pygments_cache.py ALL
|
2018-06-17 12:23:18 -04:00
|
|
|
# flake8 gives incorrect unused import errors, F401
|
2016-07-20 22:07:45 +02:00
|
|
|
xonsh/ast.py F401
|
2018-06-17 12:23:18 -04:00
|
|
|
xonsh/platform.py F401
|
2016-08-21 09:59:20 -04:00
|
|
|
xonsh/built_ins.py F821 E721
|
2016-07-20 22:07:45 +02:00
|
|
|
xonsh/commands_cache.py F841
|
2016-07-20 22:28:27 +02:00
|
|
|
xonsh/history.py F821
|
2018-08-02 23:27:12 -04:00
|
|
|
xonsh/jupyter_kernel.py E203
|
2016-07-20 22:07:45 +02:00
|
|
|
xonsh/pyghooks.py F821
|
2017-01-27 11:19:33 -05:00
|
|
|
xonsh/style_tools.py F821
|
2020-02-14 09:09:34 -05:00
|
|
|
xonsh/readline_shell.py F401
|
|
|
|
xonsh/timings.py F401
|
|
|
|
xonsh/tokenize.py F821 F841
|
|
|
|
xonsh/tools.py E731
|
|
|
|
xonsh/xonfig.py E731
|
|
|
|
xonsh/proc.py E261 E265
|
|
|
|
xonsh/ptk/key_bindings.py F841
|
|
|
|
xonsh/ptk/shell.py E731
|
|
|
|
xontrib/vox.py F821
|
|
|
|
__amalgam__.py ALL
|
|
|
|
# we don't care about sphinx autogenerated files
|
|
|
|
docs/*.py ALL
|
|
|
|
# we don't care about ply files?
|
|
|
|
ply/*.py ALL
|
|
|
|
# these run VERY slowly and give tons of errors
|
|
|
|
parser*_table.py ALL
|
|
|
|
# oh come on
|
|
|
|
setup.py ALL
|
|
|
|
|
|
|
|
# remove these later
|
|
|
|
*.py E741 # ambiguous variable name
|
|
|
|
xonsh/color_tools.py E305
|
|
|
|
xonsh/inspectors.py E722
|
|
|
|
xonsh/lexer.py E741
|
|
|
|
xonsh/platform.py E305
|
|
|
|
xonsh/style_tools.py E305
|
|
|
|
xonsh/tools.py E305
|
|
|
|
xonsh/winutils.py E305
|
|
|
|
xonsh/completers/_aliases.py E305
|
|
|
|
xonsh/completers/python.py E722
|
|
|
|
xonsh/parsers/context_check.py E305
|
|
|
|
xonsh/xoreutils/*.py E722 E305
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length = 180
|
2020-05-05 06:42:28 -04:00
|
|
|
# ignore <file> ALL hangs on parser_table.py, need exclude=
|
|
|
|
# flake8 uses os.fnmatch -- different globbing syntax.
|
|
|
|
exclude =
|
|
|
|
__amalgam__.py
|
2016-07-15 09:34:01 +02:00
|
|
|
# we don't care about sphinx autogenerated files
|
2020-05-05 06:42:28 -04:00
|
|
|
docs/*.py
|
2016-07-15 09:34:01 +02:00
|
|
|
# we don't care about ply files?
|
2020-05-05 06:42:28 -04:00
|
|
|
*/ply/*.py
|
2016-07-15 09:34:01 +02:00
|
|
|
# these run VERY slowly and give tons of errors
|
2020-05-05 06:42:28 -04:00
|
|
|
parser*_table.py
|
2018-03-12 12:09:58 -04:00
|
|
|
# oh come on
|
2020-05-05 06:42:28 -04:00
|
|
|
setup.py
|
|
|
|
ignore =
|
|
|
|
E122
|
|
|
|
, E203 # E203 whitespace before ':'
|
|
|
|
, E402
|
|
|
|
, W503 # line break before binary operators is a good thing
|
|
|
|
, E741 # ambiguous variable name
|
|
|
|
, E731 # it's OK to assign lambda to variable.
|
|
|
|
|
|
|
|
per-file-ignores =
|
|
|
|
xonsh/pygments_cache.py: ALL
|
|
|
|
# flake8 gives incorrect unused import errors, F401
|
|
|
|
xonsh/ast.py: F401
|
|
|
|
xonsh/platform.py: F401
|
|
|
|
xonsh/built_ins.py: F821, E721
|
|
|
|
xonsh/commands_cache.py: F841
|
|
|
|
xonsh/history.py: F821
|
|
|
|
xonsh/jupyter_kernel.py: E203
|
|
|
|
xonsh/pyghooks.py: F821
|
|
|
|
xonsh/style_tools.py: F821
|
|
|
|
xonsh/readline_shell.py: F401
|
|
|
|
xonsh/timings.py: F401
|
|
|
|
xonsh/tokenize.py: F821, F841
|
|
|
|
xonsh/tools.py: E731
|
|
|
|
xonsh/xonfig.py: E731
|
|
|
|
xonsh/proc.py: E261, E265
|
|
|
|
xonsh/ptk/key_bindings.py: F841
|
|
|
|
xonsh/ptk/shell.py: E731
|
|
|
|
xontrib/vox.py: F821
|
2018-03-12 12:09:58 -04:00
|
|
|
|
|
|
|
# remove these later
|
2020-05-05 06:42:28 -04:00
|
|
|
xonsh/color_tools.py: E305
|
|
|
|
xonsh/inspectors.py: E722
|
|
|
|
xonsh/lexer.py: E741
|
|
|
|
xonsh/platform.py: E305
|
|
|
|
xonsh/style_tools.py: E305
|
|
|
|
xonsh/tools.py: E305
|
|
|
|
xonsh/winutils.py: E305
|
|
|
|
xonsh/completers/_aliases.py: E305
|
|
|
|
xonsh/completers/python.py: E722
|
|
|
|
xonsh/parsers/context_check.py: E305
|
|
|
|
xonsh/xoreutils/*.py: E722, E305
|