BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
  5. load("@py_deps//:requirements.bzl", "requirement")
  6. load("@mypy_integration//:mypy.bzl", "mypy_test")
  7. py_library(
  8. name = "github_helpers",
  9. srcs = ["github_helpers.py"],
  10. deps = [requirement("gql")],
  11. )
  12. py_test(
  13. name = "github_helpers_test",
  14. srcs = ["github_helpers_test.py"],
  15. python_version = "PY3",
  16. deps = [":github_helpers"],
  17. )
  18. py_binary(
  19. name = "pr_comments",
  20. srcs = ["pr_comments.py"],
  21. python_version = "PY3",
  22. deps = ["github_helpers"],
  23. )
  24. mypy_test(
  25. name = "pr_comments_mypy_test",
  26. deps = [":pr_comments"],
  27. )
  28. py_test(
  29. name = "pr_comments_test",
  30. srcs = ["pr_comments_test.py"],
  31. python_version = "PY3",
  32. deps = [":pr_comments"],
  33. )
  34. py_binary(
  35. name = "update_label_access",
  36. srcs = ["update_label_access.py"],
  37. python_version = "PY3",
  38. deps = [
  39. "github_helpers",
  40. requirement("pygithub"),
  41. ],
  42. )
  43. mypy_test(
  44. name = "update_label_access_mypy_test",
  45. deps = [":update_label_access"],
  46. )
  47. py_test(
  48. name = "update_label_access_test",
  49. srcs = ["update_label_access_test.py"],
  50. python_version = "PY3",
  51. deps = [
  52. ":pr_comments",
  53. ":update_label_access",
  54. ],
  55. )