mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16: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":
|
if ep.name == "F":
|
||||||
yield Plugin(pyflakes_meta["name"], pyflakes_meta["version"], ep)
|
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
|
# pycodestyle provides both `E` and `W` -- but our default select
|
||||||
# handles those
|
# handles those
|
||||||
# ideally pycodestyle's plugin entrypoints would exactly represent
|
# ideally pycodestyle's plugin entrypoints would exactly represent
|
||||||
# the codes they produce...
|
# the codes they produce...
|
||||||
ep = importlib_metadata.EntryPoint("E", ep.value, ep.group)
|
|
||||||
yield Plugin(
|
yield Plugin(
|
||||||
pycodestyle_meta["name"], pycodestyle_meta["version"], ep
|
pycodestyle_meta["name"], pycodestyle_meta["version"], ep
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,8 @@ flake8 = flake8.main.cli:main
|
||||||
|
|
||||||
[flake8.extension]
|
[flake8.extension]
|
||||||
F = flake8.plugins.pyflakes:FlakesChecker
|
F = flake8.plugins.pyflakes:FlakesChecker
|
||||||
pycodestyle.bare_except = pycodestyle:bare_except
|
E = flake8.plugins.pycodestyle:pycodestyle_logical
|
||||||
pycodestyle.blank_lines = pycodestyle:blank_lines
|
W = flake8.plugins.pycodestyle:pycodestyle_physical
|
||||||
|
|
||||||
[flake8.report]
|
[flake8.report]
|
||||||
default = flake8.formatting.default:Default
|
default = flake8.formatting.default:Default
|
||||||
|
|
@ -181,7 +181,7 @@ def test_flake8_plugins(flake8_dist, mock_distribution):
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"E",
|
||||||
"pycodestyle:bare_except",
|
"flake8.plugins.pycodestyle:pycodestyle_logical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -189,8 +189,8 @@ def test_flake8_plugins(flake8_dist, mock_distribution):
|
||||||
"pycodestyle",
|
"pycodestyle",
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"W",
|
||||||
"pycodestyle:blank_lines",
|
"flake8.plugins.pycodestyle:pycodestyle_physical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -276,7 +276,7 @@ unrelated = unrelated:main
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"E",
|
||||||
"pycodestyle:bare_except",
|
"flake8.plugins.pycodestyle:pycodestyle_logical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -284,8 +284,8 @@ unrelated = unrelated:main
|
||||||
"pycodestyle",
|
"pycodestyle",
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"W",
|
||||||
"pycodestyle:blank_lines",
|
"flake8.plugins.pycodestyle:pycodestyle_physical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -512,7 +512,7 @@ def test_find_plugins(
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"E",
|
||||||
"pycodestyle:bare_except",
|
"flake8.plugins.pycodestyle:pycodestyle_logical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -520,8 +520,8 @@ def test_find_plugins(
|
||||||
"pycodestyle",
|
"pycodestyle",
|
||||||
"9000.2.0",
|
"9000.2.0",
|
||||||
importlib_metadata.EntryPoint(
|
importlib_metadata.EntryPoint(
|
||||||
"E",
|
"W",
|
||||||
"pycodestyle:blank_lines",
|
"flake8.plugins.pycodestyle:pycodestyle_physical",
|
||||||
"flake8.extension",
|
"flake8.extension",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue