Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor docs fixes #137

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/codemodder/scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def generate_docs(codemod):
return output


SKIP_DOCS = ["order-imports", "unused-imports"]


def main():
parser = argparse.ArgumentParser(
description="Generate public docs for registered codemods."
Expand All @@ -192,7 +195,7 @@ def main():

registry = load_registered_codemods()
for codemod in registry.codemods:
if codemod.name == "order-imports":
if codemod.name in SKIP_DOCS:
continue

doc = generate_docs(codemod)
Expand Down
2 changes: 1 addition & 1 deletion src/core_codemods/use_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class UseGenerator(BaseCodemod, NameResolutionMixin):
NAME = "use-generator"
SUMMARY = "Use generators for lazy evaluation"
SUMMARY = "Use Generator Expressions Instead of List Comprehensions"
REVIEW_GUIDANCE = ReviewGuidance.MERGE_WITHOUT_REVIEW
DESCRIPTION = "Replace list comprehension with generator expression"
REFERENCES = [
Expand Down
Loading