-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type checking of ragstack-llama-index
- Loading branch information
Showing
6 changed files
with
68 additions
and
37 deletions.
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
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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
[tox] | ||
min_version = 4.0 | ||
envlist = py311 | ||
envlist = type, unit-tests, integration-tests | ||
|
||
[testenv] | ||
description = install dependencies | ||
skip_install = true | ||
allowlist_externals = poetry | ||
commands_pre = | ||
poetry env use system | ||
poetry install -E colbert | ||
|
||
[testenv:unit-tests] | ||
description = run unit tests | ||
deps = | ||
poetry | ||
commands = | ||
poetry install | ||
poetry build | ||
poetry run pytest --disable-warnings {toxinidir}/tests/unit_tests | ||
|
||
[testenv:integration-tests] | ||
description = run integration tests | ||
deps = | ||
poetry | ||
pass_env = | ||
ASTRA_DB_TOKEN | ||
ASTRA_DB_ID | ||
ASTRA_DB_ENV | ||
commands = | ||
poetry install -E colbert | ||
poetry run pytest --disable-warnings {toxinidir}/tests/integration_tests | ||
|
||
[testenv:type] | ||
description = run type checking | ||
commands = | ||
poetry run mypy {toxinidir} |