Skip to content

Commit 4bb8706

Browse files
committed
Format code
1 parent f6eb297 commit 4bb8706

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/betterproto/enum.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import sys
44
from enum import (
5-
IntEnum,
65
EnumMeta,
6+
IntEnum,
77
)
88
from types import MappingProxyType
99
from typing import (
@@ -42,10 +42,6 @@ def __new__(
4242
) -> Self:
4343
value_map = {}
4444

45-
46-
47-
48-
4945
member_map = {}
5046

5147
new_mcs = type(

src/betterproto/plugin/compiler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os.path
2-
import sys
32
import subprocess
3+
import sys
44

55
from .module_validation import ModuleValidator
66

@@ -48,7 +48,9 @@ def outputfile_compiler(output_file: OutputTemplate) -> str:
4848
)
4949

5050
# Format the code
51-
code = subprocess.check_output(["ruff", "format", "-"], input=code, encoding="utf-8")
51+
code = subprocess.check_output(
52+
["ruff", "format", "-"], input=code, encoding="utf-8"
53+
)
5254

5355
# Validate the generated code.
5456
validator = ModuleValidator(iter(code.splitlines()))

0 commit comments

Comments
 (0)