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