Skip to content

Commit 7255aad

Browse files
authored
Merge branch 'main' into fix_test
2 parents 7b1a01b + 76564ac commit 7255aad

File tree

20 files changed

+11966
-210
lines changed

20 files changed

+11966
-210
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858
hooks:
5959
- id: mypy
6060
additional_dependencies: ["types-PyYAML", "types-requests"]
61-
exclude: ^(docs/|.*/test_.*|utilities/manifests/*|utilities/plugins/tgis_grpc/*)
61+
exclude: ^(docs/|.*test.*\.py$|utilities/manifests/.*|utilities/plugins/tgis_grpc/.*)
6262

6363

6464
- repo: https://github.com/espressif/conventional-precommit-linter

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def pytest_addoption(parser: Parser) -> None:
4848
upgrade_group = parser.getgroup(name="Upgrade options")
4949
must_gather_group = parser.getgroup(name="MustGather")
5050
cluster_sanity_group = parser.getgroup(name="ClusterSanity")
51+
hf_group = parser.getgroup(name="Hugging Face")
5152

5253
# AWS config and credentials options
5354
aws_group.addoption(
@@ -152,6 +153,9 @@ def pytest_addoption(parser: Parser) -> None:
152153
action="store_true",
153154
)
154155

156+
# HuggingFace options
157+
hf_group.addoption("--hf-access-token", default=os.environ.get("HF_ACCESS_TOKEN"), help="HF access token")
158+
155159

156160
def pytest_cmdline_main(config: Any) -> None:
157161
config.option.basetemp = py_config["tmp_base_dir"] = f"{config.option.basetemp}-{shortuuid.uuid()}"

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ dependencies = [
6868
"pytest-order>=1.3.0",
6969
"marshmallow==3.26.1,<4", # this version is needed for pytest-jira
7070
"pytest-html>=4.1.1",
71+
"fire",
72+
"llama_stack_client==0.2.10",
7173
]
7274

7375
[project.urls]

tests/model_explainability/guardrails/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)