You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using flake8-pylint to be able to run all checks in one command.
When I suppress pylint errors in INI file flake8 crashes.
I propose to change the regexp for a valid code to allow more than 3 digits.
sample code
t.py:
"""Docstring"""print("{}".format(123))
sample ini file
[flake8]ignore = PLC0209
commands ran
Without inifile
$ flake8 t.pyt.py:2:7: PLC0209 Formatting a regular string which could be a f-string (consider-using-f-string)
With ignore flag
$ flake8 --ignore PLC0209 t.py
With inifile
$ flake8 t.pyTraceback (most recent call last): File "/home/bug/venv/bin/flake8", line 8, in <module> sys.exit(main()) File "/home/bug/venv/lib/python3.8/site-packages/flake8/main/cli.py", line 23, in main app.run(argv) File "/home/bug/venv/lib/python3.8/site-packages/flake8/main/application.py", line 198, in run self._run(argv) File "/home/bug/venv/lib/python3.8/site-packages/flake8/main/application.py", line 186, in _run self.initialize(argv) File "/home/bug/venv/lib/python3.8/site-packages/flake8/main/application.py", line 165, in initialize self.plugins, self.options = parse_args(argv) File "/home/bug/venv/lib/python3.8/site-packages/flake8/options/parse_args.py", line 53, in parse_args opts = aggregator.aggregate_options(option_manager, cfg, cfg_dir, rest) File "/home/bug/venv/lib/python3.8/site-packages/flake8/options/aggregator.py", line 30, in aggregate_options parsed_config = config.parse_config(manager, cfg, cfg_dir) File "/home/bug/venv/lib/python3.8/site-packages/flake8/options/config.py", line 131, in parse_config raise ValueError(ValueError: Error code 'PLC0209' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'
The text was updated successfully, but these errors were encountered:
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
what I expected to happen
I am using flake8-pylint to be able to run all checks in one command.
When I suppress pylint errors in INI file flake8 crashes.
I propose to change the regexp for a valid code to allow more than 3 digits.
sample code
t.py:
sample ini file
commands ran
Without inifile
With ignore flag
$ flake8 --ignore PLC0209 t.py
With inifile
The text was updated successfully, but these errors were encountered: