2020-11-02 11:39:42 +01:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary")
|
|
|
|
load("@py_deps//:requirements.bzl", "requirement")
|
2021-04-13 13:21:30 +02:00
|
|
|
load(":binary.bzl", "pip_binary")
|
|
|
|
|
|
|
|
pip_binary(name = "black")
|
|
|
|
|
|
|
|
pip_binary(name = "isort")
|
|
|
|
|
|
|
|
pip_binary(name = "mypy")
|
|
|
|
|
2021-04-14 10:06:16 +02:00
|
|
|
pip_binary(
|
|
|
|
name = "dmypy",
|
|
|
|
pkg = "mypy",
|
|
|
|
)
|
|
|
|
|
2021-04-13 13:21:30 +02:00
|
|
|
pip_binary(name = "pylint")
|
|
|
|
|
|
|
|
pip_binary(
|
|
|
|
name = "protoc-gen-mypy",
|
|
|
|
pkg = "mypy-protobuf",
|
|
|
|
)
|
2020-11-02 11:39:42 +01:00
|
|
|
|
|
|
|
py_binary(
|
|
|
|
name = "update",
|
|
|
|
srcs = ["update.py"],
|
|
|
|
data = [
|
|
|
|
"requirements.in",
|
|
|
|
"requirements.txt",
|
|
|
|
],
|
|
|
|
tags = ["manual"],
|
|
|
|
deps = [
|
|
|
|
requirement("pip-tools"),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-11-12 10:27:30 +01:00
|
|
|
exports_files([
|
|
|
|
"requirements.txt",
|
|
|
|
"licenses.json",
|
|
|
|
])
|