mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
style: Add black pre-commit hook (#2811)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import plumbum
|
||||
from pathlib import Path
|
||||
|
||||
import plumbum
|
||||
|
||||
THIS_DIR = Path(__file__).parent.resolve()
|
||||
ROOT_DIR = THIS_DIR.parent.resolve()
|
||||
|
||||
@@ -21,15 +22,23 @@ def rebuild():
|
||||
for profile in profiles:
|
||||
print(f"Rebuilding {profile} with build type {build_type}")
|
||||
with plumbum.local.cwd(ROOT_DIR):
|
||||
CONAN[
|
||||
"install", ".",
|
||||
"--build=missing",
|
||||
f"--output-folder=build_{profile}_{build_type}",
|
||||
"-s", f"build_type={build_type}",
|
||||
"-o", "&:tests=True",
|
||||
"-o", "&:benchmark=True",
|
||||
"--profile:all", profile
|
||||
] & plumbum.FG
|
||||
(
|
||||
CONAN[
|
||||
"install",
|
||||
".",
|
||||
"--build=missing",
|
||||
f"--output-folder=build_{profile}_{build_type}",
|
||||
"-s",
|
||||
f"build_type={build_type}",
|
||||
"-o",
|
||||
"&:tests=True",
|
||||
"-o",
|
||||
"&:benchmark=True",
|
||||
"--profile:all",
|
||||
profile,
|
||||
]
|
||||
& plumbum.FG
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user