@@ -31,84 +31,63 @@ Request features on the `Issue Tracker`_.
3131How to set up your development environment
3232------------------------------------------
3333
34- You need Python 3.10+ and Poetry _ to set up your development environment.
34+ 1. Fork the repository on GitHub.
35+ 2. Make a new conda environment with Python 3.11 or 3.12.
36+ 3. ``pip install poetry `` : we use poetry to manage dependencies
37+ 4. ``poetry install `` : this will install all dependencies
38+ 5. Test whether the installation was successful by running the following command:
3539
36- .. _ Poetry : https://python-poetry.org/
40+ .. code :: console
3741
42+ $ python run_suite.py --run_id my_first_run --models NaiveDrugMeanPredictor ElasticNet --dataset TOYv1 --test_mode LCO
3843
39- How to test the project
40- -----------------------
44+ 6. Visualize the results by running the following command:
4145
42- For this, you need to install nox and nox-poetry:
46+ .. code :: console
4347
44- .. code :: console
48+ $ python create_report.py --run_id my_first_run --dataset TOYv1
4549
46- $ pip install nox nox-poetry
50+ How to test the project
51+ -----------------------
4752
48- Run the full test suite:
53+ Unit tests are located in the ``tests `` directory,
54+ and are written using the pytest _ testing framework.
4955
50- .. code :: console
56+ .. _ pytest : https://pytest.readthedocs.io/
5157
52- $ nox
58+ How to submit changes
59+ ---------------------
5360
54- List the available Nox sessions:
61+ Open a ` pull request `_ to submit changes to this project against the `` development `` branch.
5562
56- .. code :: console
63+ Your pull request needs to meet the following guidelines for acceptance:
5764
58- $ nox --list-sessions
65+ - The code must pass all tests.
66+ - Include unit tests. This project maintains a high code coverage.
67+ - If your changes add functionality, update the documentation accordingly.
5968
60- You can also run a specific Nox session.
61- For example, invoke the unit test suite like this :
69+ To run linting and code formatting checks before committing your change, you can install pre-commit as a
70+ Git hook by running the following command :
6271
6372.. code :: console
6473
65- $ nox --session=tests
74+ $ nox --session=pre-commit -- install
6675
67- Unit tests are located in the ``tests `` directory,
68- and are written using the pytest _ testing framework.
76+ It is recommended to open an issue before starting work on anything.
6977
70- .. _ pytest : https://pytest.readthedocs.io/
78+ .. _ pull request : https://github.com/daisybio/drevalpy/pulls
7179
7280How to build and view the documentation
7381---------------------------------------
7482
7583This project uses Sphinx _ together with several extensions to build the documentation.
76-
77- To install all required dependencies for the documentation run:
78-
79- .. code :: console
80-
81- $ pip install -r docs/requirements.txt
82-
83- Please note that drevalpy itself must also be installed. To build the documentation run:
84+ To build the documentation, change into the docs/ directory and run:
8485
8586.. code :: console
8687
8788 $ make html
8889
89- from inside the docs folder. The generated static HTML files can be found in the `_build/html ` folder.
90+ The generated static HTML files can be found in the `_build/html ` folder.
9091Simply open them with your favorite browser.
9192
9293.. _sphinx : https://www.sphinx-doc.org/en/master/
93-
94- How to submit changes
95- ---------------------
96-
97- Open a `pull request `_ to submit changes to this project against the ``development `` branch.
98-
99- Your pull request needs to meet the following guidelines for acceptance:
100-
101- - The Nox test suite must pass without errors and warnings.
102- - Include unit tests. This project maintains a high code coverage.
103- - If your changes add functionality, update the documentation accordingly.
104-
105- To run linting and code formatting checks before committing your change, you can install pre-commit as a Git hook by running the following command:
106-
107- .. code :: console
108-
109- $ nox --session=pre-commit -- install
110-
111- It is recommended to open an issue before starting work on anything.
112- This will allow a chance to talk it over with the owners and validate your approach.
113-
114- .. _pull request : https://github.com/daisybio/drevalpy/pulls
0 commit comments