| # Licensed under the Apache-2.0 license | |
| # SPDX-License-Identifier: Apache-2.0 | |
| load("@pigweed//pw_build:python.bzl", "pw_py_binary", "pw_py_test") | |
| pw_py_binary( | |
| name = "presubmit", | |
| srcs = [ | |
| "cpp_include_guard.py", | |
| "license.py", | |
| "presubmit.py", | |
| "rust_features.py", | |
| ], | |
| main = "presubmit.py", | |
| deps = [ | |
| "@pigweed//pw_presubmit/py:pw_presubmit", | |
| ], | |
| ) | |
| pw_py_test( | |
| name = "rust_features_test", | |
| srcs = ["rust_features_test.py"], | |
| imports = [".."], | |
| main = "rust_features_test.py", | |
| deps = [":presubmit"], | |
| ) | |
| pw_py_binary( | |
| name = "lockfile_check", | |
| srcs = ["lockfile_check.py"], | |
| main = "lockfile_check.py", | |
| ) | |
| pw_py_binary( | |
| name = "zero_tests", | |
| srcs = ["zero_tests.py"], | |
| main = "zero_tests.py", | |
| ) | |
| pw_py_test( | |
| name = "zero_tests_test", | |
| srcs = ["zero_tests_test.py"], | |
| imports = [".."], | |
| main = "zero_tests_test.py", | |
| deps = [":zero_tests"], | |
| ) |