mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00

* flake8 fixes -- tests only * fix ci failure * integrate fix from is_3551 so tests will pass. * Update tests/test_builtins.py Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
106 lines
3 KiB
INI
106 lines
3 KiB
INI
[tool:pytest]
|
|
flake8-max-line-length = 180
|
|
flake8-ignore =
|
|
*.py E122
|
|
*.py E203 # E203 whitespace before ':'
|
|
*.py E402
|
|
*.py W503 # line break before binary operators is a good thing
|
|
*.py E731 # it's OK to assign lambda to variable
|
|
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
|
|
__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
|
|
# ignore <file> ALL hangs on parser_table.py, need exclude=
|
|
# flake8 uses os.fnmatch -- different globbing syntax.
|
|
exclude =
|
|
__amalgam__.py
|
|
# we don't care about sphinx autogenerated files
|
|
docs/*.py
|
|
# we don't care about ply files?
|
|
*/ply/*.py
|
|
# these run VERY slowly and give tons of errors
|
|
parser*_table.py
|
|
# oh come on
|
|
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
|
|
|
|
# remove these later
|
|
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
|