mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 07:20:10 +01:00
I'm seeing if I can upstream thundergolfer/bazel-mypy-integration#43, but we can also point at my fork for the time being. This should resolve conflicts with mypy treating imports as non-hermetic, creating inconsistent behavior if packages are/aren't installed locally.
66 lines
1.4 KiB
Python
66 lines
1.4 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")
|
|
load("@mypy_integration//:mypy.bzl", "mypy_test")
|
|
|
|
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"],
|
|
)
|
|
|
|
mypy_test(
|
|
name = "pr_comments_mypy_test",
|
|
include_imports = True,
|
|
deps = [":pr_comments"],
|
|
)
|
|
|
|
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"),
|
|
],
|
|
)
|
|
|
|
mypy_test(
|
|
name = "update_label_access_mypy_test",
|
|
include_imports = True,
|
|
deps = [":update_label_access"],
|
|
)
|
|
|
|
py_test(
|
|
name = "update_label_access_test",
|
|
srcs = ["update_label_access_test.py"],
|
|
python_version = "PY3",
|
|
deps = [
|
|
":pr_comments",
|
|
":update_label_access",
|
|
],
|
|
)
|