mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 04:06:54 +00:00
re-show pycodestyle in help after plugin gen
This commit is contained in:
parent
ddae449cec
commit
58ade57ca2
2 changed files with 12 additions and 13 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue