Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Sort __all__ #78

Merged
merged 1 commit into from
May 4, 2025
Merged
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
4 changes: 2 additions & 2 deletions src/betterproto2_compiler/plugin/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def add_to_all(name: str) -> str:
code = header_template.render(output_file=output_file, version=version, all=all) + "\n" + code

try:
# Sort imports, delete unused ones
# Sort imports, delete unused ones, sort __all__
code = subprocess.check_output(
["ruff", "check", "--select", "I,F401,TCH005", "--fix", "--silent", "-"],
["ruff", "check", "--select", "I,F401,TC005,RUF022", "--fix", "--silent", "-"],
input=code,
encoding="utf-8",
)
Expand Down
Loading