Skip to content

Commit 21424eb

Browse files
committed
ruff format fix
1 parent a9a1bde commit 21424eb

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

hatch_build.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from typing import Any
32
import inspect
43
import os
@@ -16,9 +15,10 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
1615
build_data["infer_tag"] = True
1716
build_data["pure_python"] = False
1817

19-
subprocess.run([
20-
"conan", "remote", "add", "osp", "https://osp.jfrog.io/artifactory/api/conan/conan-local", "--force"
21-
], check=True)
18+
subprocess.run(
19+
["conan", "remote", "add", "osp", "https://osp.jfrog.io/artifactory/api/conan/conan-local", "--force"],
20+
check=True,
21+
)
2222
subprocess.run(["conan", "profile", "detect", "--force"], check=True)
2323

2424
for frame_info in inspect.stack():
@@ -33,19 +33,19 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
3333
else:
3434
build_packages = "-b missing"
3535

36-
install_cmd = f"conan install . -u {build_packages} -of build --format json -b b2/* -b m4/* --out-file graph.json"
36+
install_cmd = (
37+
f"conan install . -u {build_packages} -of build --format json -b b2/* -b m4/* --out-file graph.json"
38+
)
3739
result = subprocess.run(install_cmd, shell=True)
3840
assert result.returncode == 0, "Conan install failed"
3941

4042
if "CONAN_UPLOAD_OSP" in os.environ:
4143
print("Uploading packages..")
4244
with open("pkglist.json", "w") as pkglist_file:
43-
subprocess.run([
44-
"conan", "list", "--graph=graph.json", "--format=json"
45-
], check=True, stdout=pkglist_file)
46-
subprocess.run([
47-
"conan", "upload", "--confirm", "--list=pkglist.json", "--remote", "osp"
48-
], check=True)
45+
subprocess.run(
46+
["conan", "list", "--graph=graph.json", "--format=json"], check=True, stdout=pkglist_file
47+
)
48+
subprocess.run(["conan", "upload", "--confirm", "--list=pkglist.json", "--remote", "osp"], check=True)
4949

5050
if system_os == "Linux":
5151
subprocess.run(["patchelf", "--set-rpath", "$ORIGIN", "build/libcosimc/*"], shell=True, check=True)

0 commit comments

Comments
 (0)