load("@pip//:requirements.bzl", "requirement") def py_pytest(name, srcs, deps = [], **kwargs): native.py_test( name = name, srcs = ["//private:pytest_wrapper.py"], main = "//private:pytest_wrapper.py", data = srcs, args = [ "--black", "--pylint", #"--mypy", ] + ["$(location :%s)" % x for x in srcs], deps = [ requirement("pytest"), requirement("pytest-black"), requirement("pytest-pylint"), requirement("pytest-mypy"), ] + deps, **kwargs )