upgrade pyflakes to 3.0.0

This commit is contained in:
Anthony Sottile 2022-11-23 13:56:50 -05:00
parent 8c06197cd5
commit 489be4d30a
4 changed files with 6 additions and 17 deletions

View file

@ -685,7 +685,7 @@ def test_load_plugin_ok():
assert loaded == finder.LoadedPlugin(
plugin,
FlakesChecker,
{"tree": True, "file_tokens": True, "filename": True},
{"tree": True, "filename": True},
)

View file

@ -27,7 +27,7 @@ def f():
sys = sys
"""
tree = ast.parse(src)
checker = pyflakes_shim.FlakesChecker(tree, [], "t.py")
checker = pyflakes_shim.FlakesChecker(tree, "t.py")
message_texts = [s for _, _, s, _ in checker.run()]
assert message_texts == [
"F823 local variable 'sys' defined in enclosing scope on line 1 referenced before assignment", # noqa: E501