BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. include_imports = True,
  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. include_imports = True,
  46. deps = [":update_label_access"],
  47. )
  48. py_test(
  49. name = "update_label_access_test",
  50. srcs = ["update_label_access_test.py"],
  51. python_version = "PY3",
  52. deps = [
  53. ":pr_comments",
  54. ":update_label_access",
  55. ],
  56. )