Skip to content

Commit

Permalink
refactor: rename to py_ prefix matching casey's
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 3, 2024
1 parent 5f9a6b4 commit 7577655
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/pytest/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@aspect_rules_py//pytest:defs.bzl", "pytest_test")
load("@aspect_rules_py//pytest:defs.bzl", "py_pytest_test")

pytest_test(
py_pytest_test(
name = "pytest_test",
srcs = [
"foo_test.py",
Expand Down
8 changes: 4 additions & 4 deletions pytest/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Example:
```starlark
load("@aspect_rules_py//pytest:defs.bzl", "pytest_test")
load("@aspect_rules_py//pytest:defs.bzl", "py_pytest_test")
pytest_test(
py_pytest_test(
name = "test_w_pytest",
size = "small",
srcs = ["test.py"],
Expand All @@ -17,7 +17,7 @@ If sharding is used (when `shard_count > 1`) then `@pip//pytest_shard` is also a
To instead provide explicit deps for the pytest library, set `pytest_deps`:
```starlark
pytest_test(
py_pytest_test(
name = "test_w_my_pytest",
shard_count = 2,
srcs = ["test.py"],
Expand All @@ -28,7 +28,7 @@ pytest_test(

load("//py:defs.bzl", "py_test")

def pytest_test(name, srcs, deps = [], args = [], pytest_deps = None, pip_repo = "pip", **kwargs):
def py_pytest_test(name, srcs, deps = [], args = [], pytest_deps = None, pip_repo = "pip", **kwargs):
"""
Wrapper macro for `py_test` which supports pytest.
Expand Down

0 comments on commit 7577655

Please sign in to comment.