From dde78ca7442e6d2b6790969e6f498378fb2be295 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 18 Aug 2024 13:52:19 +0300 Subject: Moved pytest to private --- tools/interface_generator/private/defs.bzl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/interface_generator/private/defs.bzl (limited to 'tools/interface_generator/private/defs.bzl') diff --git a/tools/interface_generator/private/defs.bzl b/tools/interface_generator/private/defs.bzl new file mode 100644 index 0000000..080f19a --- /dev/null +++ b/tools/interface_generator/private/defs.bzl @@ -0,0 +1,22 @@ +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 + ) + -- cgit v1.2.1