You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+1-30
Original file line number
Diff line number
Diff line change
@@ -36,33 +36,4 @@ In general, we follow the ["fork-and-pull" Git workflow](https://gist.github.com
36
36
37
37
## Setting Up Your Environment
38
38
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).
Copy file name to clipboardexpand all lines: docs/getting_started/developers.rst
+18-9
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,24 @@ Developer's Guide
5
5
6
6
Development Dependencies
7
7
~~~~~~~~~~~~~~~~~~~~~~~~
8
+
8
9
Building the package from source additionally requires the following dependencies:
9
10
10
11
* cython (>=3.0a4)
11
12
12
13
We also use pre-commit hooks to identify simple issues before submission.
13
14
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::
15
21
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
17
26
18
27
Development Installation
19
28
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -38,25 +47,25 @@ Test and Coverage
38
47
39
48
Ensure that `pytest` and `pytest-cov` are installed::
40
49
41
-
$ pip install pytest pytest-cov
50
+
pip install pytest pytest-cov
42
51
43
52
To test the code::
44
53
45
-
$ python -m pytest quantile_forest -v
54
+
python -m pytest quantile_forest -v
46
55
47
56
To test the code and produce a coverage report::
48
57
49
-
$ python -m pytest quantile_forest --cov-report html --cov=quantile_forest
58
+
python -m pytest quantile_forest --cov-report html --cov=quantile_forest
0 commit comments