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
diff --git a/setup.cfg b/setup.cfg
index 5948cc21..3cc6eeea 100644
--- a/setup.cfg+++ b/setup.cfg@@ -25,11 +25,11 @@ ignore =
W504,
F403,
B007,
- F401, # ignore unused imports for now and fix the real issues+ F401,
B950,
- W605, # regex related warnings+ W605,
W503,
- N806, # variable naming in django inside function might not be lowercase, since we can also use class name import+ N806,
My flake8 config in setup.cfg had comments to explain some of the rules. They worked in all previous version of flake8. However, with this latest version, I had to comment this out for flake8 to work, or I will just get a crash like this:
Traceback (most recent call last): File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/bin/flake8", line 8, in <module> sys.exit(main()) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/main/cli.py", line 23, in main app.run(argv) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/main/application.py", line 198, in run self._run(argv) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/main/application.py", line 186, in _run self.initialize(argv) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/main/application.py", line 165, in initialize self.plugins, self.options = parse_args(argv) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/options/parse_args.py", line 53, in parse_args opts = aggregator.aggregate_options(option_manager, cfg, cfg_dir, rest) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/options/aggregator.py", line 30, in aggregate_options parsed_config = config.parse_config(manager, cfg, cfg_dir) File "/Users/vinitkumar/projects/python/socialschools-intranet/venv/lib/python3.10/site-packages/flake8/options/config.py", line 131, in parse_config raise ValueError(ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'
It looks like the support for comments in flake8 config is deprecated, or maybe it is a regression.
The text was updated successfully, but these errors were encountered:
how did you install flake8?
describe the problem
what I expected to happen
My flake8 config in setup.cfg had comments to explain some of the rules. They worked in all previous version of flake8. However, with this latest version, I had to comment this out for flake8 to work, or I will just get a crash like this:
It looks like the support for comments in flake8 config is deprecated, or maybe it is a regression.
The text was updated successfully, but these errors were encountered: