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

Commit 517c698

Browse files
Sort __all__ (#78)
1 parent 5c61b5e commit 517c698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/betterproto2_compiler/plugin/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def add_to_all(name: str) -> str:
5151
code = header_template.render(output_file=output_file, version=version, all=all) + "\n" + code
5252

5353
try:
54-
# Sort imports, delete unused ones
54+
# Sort imports, delete unused ones, sort __all__
5555
code = subprocess.check_output(
56-
["ruff", "check", "--select", "I,F401,TCH005", "--fix", "--silent", "-"],
56+
["ruff", "check", "--select", "I,F401,TC005,RUF022", "--fix", "--silent", "-"],
5757
input=code,
5858
encoding="utf-8",
5959
)

0 commit comments

Comments
 (0)