mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +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.
22 lines
535 B
Python
22 lines
535 B
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_binary(
|
|
name = "migrate_cpp",
|
|
srcs = ["migrate_cpp.py"],
|
|
data = [
|
|
":clang_tidy.yaml",
|
|
"//migrate_cpp/cpp_refactoring",
|
|
],
|
|
python_version = "PY3",
|
|
)
|
|
|
|
mypy_test(
|
|
name = "migrate_cpp_mypy_test",
|
|
include_imports = True,
|
|
deps = [":migrate_cpp"],
|
|
)
|