@@ -22,14 +22,17 @@ Can be installed via `pip`: `pip install codeflare-sdk`
22
22
### Prerequisites
23
23
24
24
We recommend using Python 3.9 for development.
25
- Install dependencies: ` poetry install `
25
+
26
+ #### Install dependencies:
27
+ - run: ` poetry install `
28
+
26
29
This will install standard requirements as specified in the poetry.lock file. Test and docs dependencies are optional.
27
30
28
- To include test dependencies run: ` poetry install --with test `
31
+ - To include test dependencies run: ` poetry install --with test `
29
32
30
- To include docs dependencies run: ` poetry install --with docs `
33
+ - To include docs dependencies run: ` poetry install --with docs `
31
34
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 `
33
36
34
37
If you require a requirements.txt file you can run:
35
38
@@ -44,13 +47,13 @@ To build the codeflare-sdk pre-commit image run `podman build -f .github/build/C
44
47
### Testing
45
48
46
49
- 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`
48
51
- Any new test functions/scripts can be added into the ` tests ` folder
49
52
- NOTE: Functional tests coming soon, will live in ` tests/func_test.py `
50
53
51
54
#### Code Coverage
52
55
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`
54
57
- To then view a code coverage report w/ missing lines, run ` coverage report -m `
55
58
56
59
### Code Formatting
0 commit comments