Files
carbon-lang/github_tools/BUILD
T
Jon Meow 107848e30f Switch mypy approach to pre-commit (#1234)
I'm treating my PR to mypy bazel integration as dead in the water. Abandoning that approach, this seems to work reasonably well as a replacement. It's actually a slightly newer version of mypy too -- the bazel integration was stuck on an old version.

Note I don't think we're losing much: we shouldn't be writing too much python.
2022-05-09 09:54:12 -07:00

53 lines
1.1 KiB
Python

# 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
load("@py_deps//:requirements.bzl", "requirement")
py_library(
name = "github_helpers",
srcs = ["github_helpers.py"],
deps = [requirement("gql")],
)
py_test(
name = "github_helpers_test",
srcs = ["github_helpers_test.py"],
python_version = "PY3",
deps = [":github_helpers"],
)
py_binary(
name = "pr_comments",
srcs = ["pr_comments.py"],
python_version = "PY3",
deps = ["github_helpers"],
)
py_test(
name = "pr_comments_test",
srcs = ["pr_comments_test.py"],
python_version = "PY3",
deps = [":pr_comments"],
)
py_binary(
name = "update_label_access",
srcs = ["update_label_access.py"],
python_version = "PY3",
deps = [
"github_helpers",
requirement("pygithub"),
],
)
py_test(
name = "update_label_access_test",
srcs = ["update_label_access_test.py"],
python_version = "PY3",
deps = [
":pr_comments",
":update_label_access",
],
)