BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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("@py_deps//:requirements.bzl", "requirement")
  5. load("@mypy_integration//:mypy.bzl", "mypy_test")
  6. py_library(
  7. name = "github_helpers",
  8. srcs = ["github_helpers.py"],
  9. deps = [requirement("gql")],
  10. )
  11. py_test(
  12. name = "github_helpers_test",
  13. srcs = ["github_helpers_test.py"],
  14. python_version = "PY3",
  15. deps = [":github_helpers"],
  16. )
  17. py_binary(
  18. name = "pr_comments",
  19. srcs = ["pr_comments.py"],
  20. python_version = "PY3",
  21. deps = ["github_helpers"],
  22. )
  23. mypy_test(
  24. name = "pr_comments_mypy_test",
  25. deps = [":pr_comments"],
  26. )
  27. py_test(
  28. name = "pr_comments_test",
  29. srcs = ["pr_comments_test.py"],
  30. python_version = "PY3",
  31. deps = [":pr_comments"],
  32. )
  33. py_binary(
  34. name = "update_label_access",
  35. srcs = ["update_label_access.py"],
  36. python_version = "PY3",
  37. deps = [
  38. "github_helpers",
  39. requirement("pygithub"),
  40. ],
  41. )
  42. mypy_test(
  43. name = "update_label_access_mypy_test",
  44. deps = [":update_label_access"],
  45. )
  46. py_test(
  47. name = "update_label_access_test",
  48. srcs = ["update_label_access_test.py"],
  49. python_version = "PY3",
  50. deps = [
  51. ":pr_comments",
  52. ":update_label_access",
  53. ],
  54. )