|
4 | 4 |
|
5 | 5 | ### Bounty Board
|
6 | 6 |
|
7 |
| -The bounty board will have various features, issues, and requests that are up for grabs. |
| 7 | +The bounty board will have various features, issues, and requests that are up for grabs. We are still working on this. Come to the discord and ask for the current bounties. |
8 | 8 |
|
9 | 9 | See the spreadsheet [here](https://docs.google.com/spreadsheets/d/1psHSfFXENAxhQTd5veKRzKydVubD2Ov62aKQHiYC-CQ/edit?usp=sharing) for the current bounties.
|
10 | 10 |
|
11 |
| - |
12 | 11 | ## Setting-up
|
13 | 12 |
|
14 |
| -### Create new environment |
15 |
| - |
16 |
| -```bash |
17 |
| -conda create --name dspy python=3.11 |
18 |
| -``` |
| 13 | +To run the tests, you need to first clone the repository. |
19 | 14 |
|
20 |
| -or |
| 15 | +Then install the package through poetry: |
| 16 | +Note - You may need to install poetry. See [here](https://python-poetry.org/docs/#installing-with-the-official-installer) |
21 | 17 |
|
22 | 18 | ```bash
|
23 |
| -python3 -m venv dspy |
| 19 | +poetry install --with test |
24 | 20 | ```
|
25 | 21 |
|
26 |
| -## Pre-commit hook |
27 |
| - |
28 |
| -Before using pre-commit hook you need to install it in your python environment. |
29 |
| - |
30 |
| -```bash |
31 |
| -conda install -c conda-forge pre-commit |
32 |
| -``` |
| 22 | +## Testing |
33 | 23 |
|
34 |
| -go to the root folder and then activate it as follows (it will first download all required dependencies): |
| 24 | +To run the all tests, or a specific test suite, use the following commands: |
35 | 25 |
|
36 | 26 | ```bash
|
37 |
| -pre-commit install |
38 |
| -``` |
39 |
| - |
40 |
| -> Pre-commit hooks will attempt to fix all your files and so you will need to (add + commit) them once the fixes are done ! |
41 |
| -
|
42 |
| -### Optional |
43 |
| - |
44 |
| -Generally the pre-commit will run automatically before each of your commit, |
45 |
| -but you can also manually trigger it, as follows: |
46 |
| - |
47 |
| -```bash |
48 |
| -pre-commit run --all-files |
| 27 | +poetry run pytest |
| 28 | +poetry run pytest tests/PATH_TO_TEST_SUITE |
49 | 29 | ```
|
50 | 30 |
|
51 | 31 | ## Commit Message format
|
52 | 32 |
|
53 | 33 | Commit message format must be respected, with the following regex:
|
54 | 34 |
|
| 35 | +This ends up looking like feature(dspy): added new feature |
| 36 | + |
55 | 37 | ```
|
56 | 38 | ^(break|build|ci|docs|feat|fix|perf|refactor|style|test|ops|hotfix|release|maint|init|enh|revert)\([a-z,A-Z,0-9,\-,\_,\/,:]+\)(:)\s{1}([\w\s]+)
|
57 | 39 | ```
|
0 commit comments