anki/pip/BUILD.bazel
Damien Elmes 01049b1289 add an updated script to run mypy as a daemon
Sadly doesn't work on Windows
2021-04-14 18:10:38 +10:00

40 lines
652 B
Python

load("@rules_python//python:defs.bzl", "py_binary")
load("@py_deps//:requirements.bzl", "requirement")
load(":binary.bzl", "pip_binary")
pip_binary(name = "black")
pip_binary(name = "isort")
pip_binary(name = "mypy")
pip_binary(
name = "dmypy",
pkg = "mypy",
)
pip_binary(name = "pylint")
pip_binary(
name = "protoc-gen-mypy",
pkg = "mypy-protobuf",
)
py_binary(
name = "update",
srcs = ["update.py"],
data = [
"requirements.in",
"requirements.txt",
],
tags = ["manual"],
deps = [
requirement("pip-tools"),
],
)
exports_files([
"requirements.txt",
"licenses.json",
])