mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 03:38:12 +00: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.
52 lines
1.2 KiB
Python
52 lines
1.2 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("@mypy_integration//:mypy.bzl", "mypy_test")
|
|
|
|
py_library(
|
|
name = "proposal_list",
|
|
srcs = ["proposal_list.py"],
|
|
)
|
|
|
|
py_test(
|
|
name = "proposal_list_test",
|
|
srcs = ["proposal_list_test.py"],
|
|
data = ["//proposals:md_files"],
|
|
python_version = "PY3",
|
|
deps = [":proposal_list"],
|
|
)
|
|
|
|
py_binary(
|
|
name = "new_proposal",
|
|
srcs = ["new_proposal.py"],
|
|
python_version = "PY3",
|
|
)
|
|
|
|
py_test(
|
|
name = "new_proposal_test",
|
|
srcs = ["new_proposal_test.py"],
|
|
data = ["//proposals:md_files"],
|
|
python_version = "PY3",
|
|
deps = [":new_proposal"],
|
|
)
|
|
|
|
mypy_test(
|
|
name = "new_proposal_mypy_test",
|
|
include_imports = True,
|
|
deps = [":new_proposal"],
|
|
)
|
|
|
|
# This is a directly runnable script, but should not be run via bazel.
|
|
py_library(
|
|
name = "update_proposal_list",
|
|
srcs = ["update_proposal_list.py"],
|
|
deps = [":proposal_list"],
|
|
)
|
|
|
|
mypy_test(
|
|
name = "update_proposal_list_mypy_test",
|
|
include_imports = True,
|
|
deps = [":update_proposal_list"],
|
|
)
|