re-show pycodestyle in help after plugin gen

This commit is contained in:
Anthony Sottile 2022-02-06 08:14:26 -08:00
parent ddae449cec
commit 58ade57ca2
2 changed files with 12 additions and 13 deletions

View file

@ -162,12 +162,11 @@ def _flake8_plugins(
if ep.name == "F":
yield Plugin(pyflakes_meta["name"], pyflakes_meta["version"], ep)
elif ep.name.startswith("pycodestyle"):
elif ep.name in "EW":
# pycodestyle provides both `E` and `W` -- but our default select
# handles those
# ideally pycodestyle's plugin entrypoints would exactly represent
# the codes they produce...
ep = importlib_metadata.EntryPoint("E", ep.value, ep.group)
yield Plugin(
pycodestyle_meta["name"], pycodestyle_meta["version"], ep
)