Skip to content

Commit 2dc7d78

Browse files
committed
ruff format
1 parent 27d6fc6 commit 2dc7d78

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def __init__(self):
9595
default=(self._is_arm64() and self._is_macos()),
9696
)
9797
if self.build_cpu_aarch64:
98-
assert (
99-
self._is_arm64()
100-
), "TORCHAO_BUILD_CPU_AARCH64 requires an arm64 machine"
98+
assert self._is_arm64(), (
99+
"TORCHAO_BUILD_CPU_AARCH64 requires an arm64 machine"
100+
)
101101

102102
# TORCHAO_BUILD_KLEIDIAI is disabled by default for now because
103103
# 1) It increases the build time
@@ -106,9 +106,9 @@ def __init__(self):
106106
"TORCHAO_BUILD_KLEIDIAI", default=False
107107
)
108108
if self.build_kleidi_ai:
109-
assert (
110-
self.build_cpu_aarch64
111-
), "TORCHAO_BUILD_KLEIDIAI requires TORCHAO_BUILD_CPU_AARCH64 be set"
109+
assert self.build_cpu_aarch64, (
110+
"TORCHAO_BUILD_KLEIDIAI requires TORCHAO_BUILD_CPU_AARCH64 be set"
111+
)
112112

113113
# TORCHAO_BUILD_EXPERIMENTAL_MPS is disabled by default.
114114
self.build_experimental_mps = self._os_bool_var(
@@ -117,9 +117,9 @@ def __init__(self):
117117
if self.build_experimental_mps:
118118
assert self._is_macos(), "TORCHAO_BUILD_EXPERIMENTAL_MPS requires MacOS"
119119
assert self._is_arm64(), "TORCHAO_BUILD_EXPERIMENTAL_MPS requires arm64"
120-
assert (
121-
torch.mps.is_available()
122-
), "TORCHAO_BUILD_EXPERIMENTAL_MPS requires MPS be available"
120+
assert torch.mps.is_available(), (
121+
"TORCHAO_BUILD_EXPERIMENTAL_MPS requires MPS be available"
122+
)
123123

124124
def _is_arm64(self) -> bool:
125125
return platform.machine().startswith("arm64")

0 commit comments

Comments
 (0)