Skip to content

Commit eb3bf80

Browse files
authored
Update contributor docs (#96)
1 parent cd5208c commit eb3bf80

File tree

2 files changed

+19
-39
lines changed

2 files changed

+19
-39
lines changed

CONTRIBUTING.md

+1-30
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,4 @@ In general, we follow the ["fork-and-pull" Git workflow](https://gist.github.com
3636

3737
## Setting Up Your Environment
3838

39-
To contribute to the `quantile-forest` source code, start by forking and then cloning the repository (i.e. `git clone [email protected]:YourUsername/quantile-forest.git`)
40-
41-
Once inside the repository, to build and install the package, run:
42-
43-
```cmd
44-
python setup.py build_ext --inplace
45-
python setup.py install
46-
```
47-
48-
## Testing Your Changes
49-
50-
To execute unit tests from the `quantile-forest` repository, run:
51-
52-
```cmd
53-
pytest quantile_forest -v
54-
```
55-
56-
## Troubleshooting
57-
58-
If the build fails because SciPy is not installed, ensure OpenBLAS and LAPACK are available and accessible.
59-
60-
On macOS, run:
61-
62-
```cmd
63-
brew install openblas
64-
brew install lapack
65-
export SYSTEM_VERSION_COMPAT=1
66-
```
67-
68-
Then try rebuilding.
39+
To contribute to the `quantile-forest` source code, you can follow the [developer's guide](https://zillow.github.io/quantile-forest/getting_started/developers.html).

docs/getting_started/developers.rst

+18-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,24 @@ Developer's Guide
55

66
Development Dependencies
77
~~~~~~~~~~~~~~~~~~~~~~~~
8+
89
Building the package from source additionally requires the following dependencies:
910

1011
* cython (>=3.0a4)
1112

1213
We also use pre-commit hooks to identify simple issues before submission.
1314

14-
To install these dependencies, run::
15+
Setting Up Your Environment
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
18+
To contribute to the `quantile-forest` source code, start by forking and then cloning the repository (i.e. `git clone [email protected]:YourUsername/quantile-forest.git`)
19+
20+
Once inside the repository, you can prepare a development environment. Using conda::
1521

16-
pip install cython pre-commit
22+
conda create -n qf python=3.12
23+
conda activate qf
24+
conda install pre-commit
25+
pre-commit install
1726

1827
Development Installation
1928
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -38,25 +47,25 @@ Test and Coverage
3847

3948
Ensure that `pytest` and `pytest-cov` are installed::
4049

41-
$ pip install pytest pytest-cov
50+
pip install pytest pytest-cov
4251

4352
To test the code::
4453

45-
$ python -m pytest quantile_forest -v
54+
python -m pytest quantile_forest -v
4655

4756
To test the code and produce a coverage report::
4857

49-
$ python -m pytest quantile_forest --cov-report html --cov=quantile_forest
58+
python -m pytest quantile_forest --cov-report html --cov=quantile_forest
5059

5160
To test the documentation::
5261

53-
$ python -m pytest --doctest-glob="*.rst" --doctest-modules docs
62+
python -m pytest --doctest-glob="*.rst" --doctest-modules docs
5463

5564
Documentation
5665
~~~~~~~~~~~~~
5766

5867
To build the documentation, run::
5968

60-
$ pip install -r ./docs/sphinx_requirements.txt
61-
$ mkdir -p ./docs/_images
62-
$ sphinx-build -b html ./docs ./docs/_build
69+
pip install -r ./docs/sphinx_requirements.txt
70+
mkdir -p ./docs/_images
71+
sphinx-build -b html ./docs ./docs/_build

0 commit comments

Comments
 (0)