-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add descriptions for
tox list
(#5169)
- Loading branch information
1 parent
1e829fe
commit 2244c97
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ package = wheel | |
wheel_build_env = .pkg | ||
|
||
[testenv:phoenix_evals] | ||
description = Run tests for the arize-phoenix-evals package | ||
changedir = packages/phoenix-evals/ | ||
deps = | ||
-r requirements/ci.txt | ||
|
@@ -17,6 +18,7 @@ commands = | |
pytest -ra -x {posargs:.} | ||
|
||
[testenv:phoenix_otel] | ||
description = Run tests for the arize-phoenix-otel package | ||
changedir = packages/phoenix-otel/ | ||
deps = | ||
-r requirements/ci.txt | ||
|
@@ -27,6 +29,7 @@ commands = | |
; pytest -ra -x {posargs:.} | ||
|
||
[testenv:type_check_integration_tests] | ||
description = Run type checking with mypy on integration tests | ||
changedir = tests/integration | ||
deps = | ||
-r requirements/integration-tests.txt | ||
|
@@ -37,6 +40,7 @@ commands = | |
mypy {posargs:.} | ||
|
||
[testenv:integration_tests] | ||
description = Run integration tests | ||
pass_env = | ||
CI_TEST_DB_BACKEND | ||
changedir = tests/integration | ||
|
@@ -49,6 +53,7 @@ commands = | |
pytest {posargs:.} | ||
|
||
[testenv:type_check_unit_tests] | ||
description = Run type checking with mypy on unit tests | ||
changedir = tests/ | ||
deps = | ||
-r requirements/unit-tests.txt | ||
|
@@ -59,6 +64,7 @@ commands = | |
mypy {posargs:.} | ||
|
||
[testenv:unit_tests] | ||
description = Run unit tests | ||
changedir = tests | ||
deps = | ||
-r requirements/unit-tests.txt | ||
|
@@ -69,22 +75,25 @@ commands = | |
pytest --ignore=integration {posargs:.} | ||
|
||
[testenv:type_check] | ||
description = Run type checking with mypy on src/phoenix | ||
deps = | ||
-r requirements/type-check.txt | ||
commands_pre = | ||
uv pip install --strict --reinstall-package arize-phoenix . | ||
commands = | ||
uv pip list -v | ||
mypy {posargs:.} | ||
mypy {posargs:src/phoenix} | ||
|
||
[testenv:clean_jupyter_notebooks] | ||
description = Clear output and metadata from Jupyter notebooks | ||
deps = | ||
-r requirements/clean-jupyter-notebooks.txt | ||
commands = | ||
uv pip list -v | ||
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --inplace {posargs} | ||
|
||
[testenv:build_graphql_schema] | ||
description = Export GraphQL schema to a file | ||
changedir = app | ||
deps = | ||
-r requirements/build-graphql-schema.txt | ||
|
@@ -95,6 +104,7 @@ commands = | |
strawberry export-schema phoenix.server.api.schema:schema -o schema.graphql | ||
|
||
[testenv:build_openapi_schema] | ||
description = Export OpenAPI schema to a file | ||
changedir = schemas | ||
commands_pre = | ||
uv pip install --strict --reinstall-package arize-phoenix ../. | ||
|
@@ -103,13 +113,15 @@ commands = | |
python -m phoenix.server.api.openapi.main -o openapi.json | ||
|
||
[testenv:compile_protobuf] | ||
description = Compile protobuf files | ||
deps = | ||
-r requirements/compile-protobuf.txt | ||
commands = | ||
uv pip list -v | ||
python -m grpc_tools.protoc -I src/phoenix/proto --python_out=src/phoenix --mypy_out=src/phoenix src/phoenix/proto/trace/v1/evaluation.proto | ||
|
||
[testenv:add_symlinks] | ||
description = Add symlinks to packages (for editable install) | ||
changedir = src/phoenix | ||
allowlist_externals = | ||
sh | ||
|
@@ -118,6 +130,7 @@ commands = | |
sh -c '[ -e otel ] || ln -s ../../packages/phoenix-otel/src/phoenix/otel otel' | ||
|
||
[testenv:remove_symlinks] | ||
description = Remove symlinks to packages | ||
changedir = src/phoenix | ||
allowlist_externals = | ||
unlink | ||
|
@@ -126,6 +139,7 @@ commands = | |
unlink otel | ||
|
||
[testenv:phoenix_main] | ||
description = Run Phoenix server | ||
pass_env= | ||
PHOENIX_PORT | ||
PHOENIX_GRPC_PORT | ||
|
@@ -141,6 +155,7 @@ commands = | |
uv tool run arize-phoenix {posargs:serve} | ||
|
||
[testenv:ruff] | ||
description = Run ruff for formatting and linting | ||
commands_pre = | ||
uv tool install [email protected] | ||
commands = | ||
|