When I just run flake8 t.py with flake8, flake8-commas pre-installed it fails
Traceback (most recent call last):
File "/Users/roman.korsun/.pyenv/versions/3.12.1/bin/flake8", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/main/cli.py", line 23, in main
app.run(argv)
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/main/application.py", line 198, in run
self._run(argv)
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/main/application.py", line 187, in _run
self.run_checks()
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/main/application.py", line 103, in run_checks
self.file_checker_manager.run()
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/checker.py", line 238, in run
self.run_serial()
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/checker.py", line 221, in run_serial
).run_checks()
^^^^^^^^^^^^
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/checker.py", line 526, in run_checks
self.run_ast_checks()
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8/checker.py", line 428, in run_ast_checks
for line_number, offset, text, _ in runner:
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8_commas/_base.py", line 333, in run
for error in get_comma_errors(tokens):
File "/Users/roman.korsun/.pyenv/versions/3.12.1/lib/python3.12/site-packages/flake8_commas/_base.py", line 306, in get_comma_errors
(token.type == COLON and stack[-1].comma == LAMBDA_EXPR)
~~~~~^^^^
IndexError: list index out of range
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
what I expected to happen
No error
what happened
When I just run
flake8 t.py
with flake8, flake8-commas pre-installed it fails...
sample code
commands ran