Skip to content

Commit 58b01c8

Browse files
ci: buildifier
1 parent 09cd780 commit 58b01c8

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

examples/demo_env_from_yaml/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_test")
33

44
py_test(
55
name = "test",
6-
env = { "SOPS": "sops_decrypt.yaml" },
76
size = "small",
87
srcs = ["test.py"],
8+
data = ["sops_decrypt.yaml"],
9+
env = {"SOPS": "sops_decrypt.yaml"},
910
deps = [
1011
"@pypi_pyyaml//:pkg",
1112
"@rules_ai//lib/python:envexport",
1213
],
13-
data = [ "sops_decrypt.yaml" ],
1414
)

examples/demo_env_from_yaml/WORKSPACE

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ load("@rules_ai//:deps.bzl", rules_ai_dependencies = "dependencies")
1919
rules_ai_dependencies()
2020

2121
load("@com_github_masmovil_bazel_rules//repositories:repositories.bzl", mm_repositories = "repositories")
22+
2223
mm_repositories()
2324

2425
load("@rules_ai//:python_defs.bzl", rules_ai_py_toolchain = "py_toolchain")
2526

26-
rules_ai_py_toolchain(python_version = "3.9", python_repo_name = "python39")
27+
rules_ai_py_toolchain(
28+
python_repo_name = "python39",
29+
python_version = "3.9",
30+
)
2731

2832
# Load a pre-curated set of default per-OS requirements, naming the repo "pypi", then (a standard
2933
# step of "rules_python" use) install the dependencies defined in this vendored requirements spec

python_defs.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ def py_toolchain(python_version = "3.9", python_repo_name = "python39"):
1515

1616
# Because we drop out the pip_parse(), we need to explicitly call one of the magic hidden helper-functions:
1717
pip_install_dependencies()
18+
19+

0 commit comments

Comments
 (0)