Skip to content

Commit 232b52a

Browse files
More info
1 parent 7044099 commit 232b52a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

doc/exts/pylint_options.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,21 @@ def _write_options_page(options: OptionsDataDict, linter: PyLinter) -> None:
183183
# various class, and it would make pylint plugin code less readable
184184
# by forcing to use a single class / file
185185
sorted_checkers = sorted(options.items(), key=lambda x: x[1][0].checker)
186-
to_print = [f"({k}, [{''.join([i.name for i in v])})]" for k, v in sorted_checkers]
186+
to_print = [
187+
f"({k}, {v[0].checker.__class__} [{' '.join([i.name for i in v])})]"
188+
for k, v in sorted_checkers
189+
]
187190
print("\n".join(to_print))
188191
for checker_name, checker_options in sorted_checkers:
189192
if not found_extensions and checker_options[0].extension:
190193
sections.append(get_rst_title("Extensions", "^"))
191194
found_extensions = True
192195
sections.append(_create_checker_section(checker_name, checker_options, linter))
193196

194-
sections_string = "\n\n".join(sections)
195197
all_options_path = PYLINT_USERGUIDE_PATH / "configuration" / "all-options.rst"
198+
sections_string = "\n\n".join(sections)
196199
with open(all_options_path, "w", encoding="utf-8") as stream:
197-
stream.write(
198-
f"""
199-
200-
{sections_string}"""
201-
)
200+
stream.write(f"\n\n{sections_string}")
202201

203202

204203
# pylint: disable-next=unused-argument

0 commit comments

Comments
 (0)