in hpcpack-autoscaler/setup.py [0:0]
def run_tests(self) -> None:
# import here, cause outside the eggs aren't loaded
import sys
import pytest
# run the tests, then the format checks.
errno = pytest.main(self.test_args)
if errno != 0:
sys.exit(errno)
check_call(
["black", "--check", "src", "test"],
cwd=CWD,
)
check_call(
["isort", "-c"],
cwd=os.path.join(CWD, "src"),
)
check_call(
["isort", "-c"],
cwd=os.path.join(CWD, "test"),
)
run_type_checking()
sys.exit(errno)