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
{{ message }}
Repository navigation
trio200-blocking-calls = is loaded but not parsed from a config file #84
New try: It looks like the action parameter to flake8.options.manager.OptionManager.add_option() is entirely ignored when parsing a config file. The supplied function is never called, and it's the same thing with ListOfIdentifiers for --startable-in-context-manager, invalid identifiers aren't flagged. Instead the values are just accepted straight up.
Passing the same values at the command line works as expected.
Will delve more into flake8's internals to figure out what's going on, and probs open an issue over there. I'm opening a PR with a dirty workaround, travelling to family for holidays in the coming days so a more thorough exploration might be delayed.
Activity
jakkdl commentedon Dec 18, 2022
I think the actual problem here is flake8's
comma_separated_list.. apparently treating spaces as commas?EDIT: No, I think that's a separate problem? Maybe.
jakkdl commentedon Dec 18, 2022
New try: It looks like the
actionparameter toflake8.options.manager.OptionManager.add_option()is entirely ignored when parsing a config file. The supplied function is never called, and it's the same thing withListOfIdentifiersfor--startable-in-context-manager, invalid identifiers aren't flagged. Instead the values are just accepted straight up.Passing the same values at the command line works as expected.
Will delve more into flake8's internals to figure out what's going on, and probs open an issue over there. I'm opening a PR with a dirty workaround, travelling to family for holidays in the coming days so a more thorough exploration might be delayed.
(and then also fix spaces)
jakkdl commentedon Dec 19, 2022
Opened PyCQA/flake8#1770 and PyCQA/flake8#1771
Zac-HD commentedon Dec 19, 2022
Apparently we should just avoid
actionentirely and usetypeinstead PyCQA/flake8#1770 (comment) 🤷fix python-trio#84 and python-trio#89, --startable-in-context-manager…
fix python-trio#84 and python-trio#89, --startable-in-context-manager…
Merge pull request #93 from jakkdl/config_parsing_type