{
"can't be reached": "parsing arguments is crashing"
}
describe the problem
what I expected to happen
To lintcheck my porject folder when launching flake8 under .venv by poetry
commands ran
$ flake8 (same output as underlying)
$ flake8 --bug-report
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "...\.venv\Scripts\flake8.exe\__main__.py", line 7, in <module>
File "...\.venv\Lib\site-packages\flake8\main\cli.py", line 23, in main
app.run(argv)
File "...\.venv\Lib\site-packages\flake8\main\application.py", line 198, in run
self._run(argv)
File "...\.venv\Lib\site-packages\flake8\main\application.py", line 186, in _run
self.initialize(argv)
File "...\venv\Lib\site-packages\flake8\main\application.py", line 165, in initialize
self.plugins, self.options = parse_args(argv)
^^^^^^^^^^^^^^^^
File "...\.venv\Lib\site-packages\flake8\options\parse_args.py", line 62, in parse_args
parse_options(
File "...\.venv\Lib\site-packages\flake8_in_file_ignores\flake8_plugin.py", line 63, in parse_options
pfi_noqa_strs = get_cwd_pfi_noqa()
^^^^^^^^^^^^^^^^^^
File "...\.venv\Lib\site-packages\flake8_in_file_ignores\flake8_plugin.py", line 32, in get_cwd_pfi_noqa
first_line = read_first_line(file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\venv\Lib\site-packages\flake8_in_file_ignores\flake8_plugin.py", line 19, in read_first_line
first_line = f.readline().rstrip()
^^^^^^^^^^^^
File "C:\Users\admin\scoop\apps\pyenv\current\pyenv-win\versions\3.11.0b4\Lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 519: character maps to <undefined>
...
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
what I expected to happen
To lintcheck my porject folder when launching flake8 under .venv by poetry
commands ran
poetry's file