@@ -22,14 +22,17 @@ Can be installed via `pip`: `pip install codeflare-sdk`
2222### Prerequisites
2323
2424We recommend using Python 3.9 for development.
25- Install dependencies: ` poetry install `
25+
26+ #### Install dependencies:
27+ - run: ` poetry install `
28+
2629This will install standard requirements as specified in the poetry.lock file. Test and docs dependencies are optional.
2730
28- To include test dependencies run: ` poetry install --with test `
31+ - To include test dependencies run: ` poetry install --with test `
2932
30- To include docs dependencies run: ` poetry install --with docs `
33+ - To include docs dependencies run: ` poetry install --with docs `
3134
32- To include test and docs dependencies run: ` poetry install --with test,docs `
35+ - To include test and docs dependencies run: ` poetry install --with test,docs `
3336
3437If you require a requirements.txt file you can run:
3538
@@ -44,13 +47,13 @@ To build the codeflare-sdk pre-commit image run `podman build -f .github/build/C
4447### Testing
4548
4649- To install codeflare-sdk in editable mode, run ` pip install -e . ` from the repo root.
47- - To run the unit tests, run ` pytest -v tests/unit_test.py `
50+ - To run the unit tests, run ` poetry run pytest -v tests/unit_test.py`
4851- Any new test functions/scripts can be added into the ` tests ` folder
4952- NOTE: Functional tests coming soon, will live in ` tests/func_test.py `
5053
5154#### Code Coverage
5255
53- - Run tests with the following command: ` coverage run -m --source=src pytest tests/unit_test.py `
56+ - Run tests with the following command: ` poetry run coverage run -m --source=src pytest tests/unit_test.py`
5457- To then view a code coverage report w/ missing lines, run ` coverage report -m `
5558
5659### Code Formatting
0 commit comments