/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
scripts/check_build_graph.py
28 строк
625 B
Chandler Carruth
Switch to `prek` rather than `pre-commit` (#7244)
03 июн 2026, 22:19
Не верифицирован
03 июн 2026, 22:19
76dd872
Код
Авторство
О чём код?
#!/usr/bin/env -S uv run --script # /// script # requires-python = ">=3.12" # /// """Verify that the bazel build graph is in a valid state, for prek.""" __copyright__ = """ Part of the Carbon Language project, under the Apache License v2.0 with LLVM Exceptions. See /LICENSE for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """ import subprocess import scripts_utils def main() -> None: scripts_utils.chdir_repo_root() bazel = scripts_utils.locate_bazel() subprocess.check_call([bazel, "build", "--curses=no", "--nobuild", "//..."]) if __name__ == "__main__": main()