Contributions are welcome, and they are greatly appreciated! Every little helps, and credit will always be given.
You can contribute in many ways:
Report bugs to our issue page. If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
skfolio could always use more documentation, whether as part of the official docs, in docstrings, or even on the tutorials.
The best way to send feedback is via our issue page on GitHub. If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome 😊
Ready to contribute? Here's how to set yourself up for local development.
-
Fork the repo on GitHub.
-
Clone your fork locally:
$ git clone [email protected]:your_name_here/skfolio.git
-
Install the project in development mode with the tests and linting dependencies:
$ pip install --editable ".[tests]"
-
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
To name your branch, you can use the convention:
category/reference/description-in-kebab-case
with category:feature
,fix
,refactor
,chore
and reference:issue-<issue number>
orno-ref
. For example:feature/issue-34/factor-model
-
Add unit tests for your implementation and check that your changes pass all tests:
$ pytest
-
Then run linting and formatting checks with :
$ ruff check $ ruff format --check
-
If you added some documentation, you should test that it builds correctly :
$ pip install --editable ".[docs]" $ cd docs $ make html
-
Commit your changes and push your branch to GitHub:
$ git add . $ git commit -m "feat(something): your detailed description of your changes" $ git push origin name-of-your-bugfix-or-feature
Note: the commit message should follow the conventional commits.
-
Submit a pull request through the GitHub website or using the GitHub CLI:
$ gh pr create --fill
We like to have the pull request open as soon as possible, that's a great place to discuss any piece of work, even unfinished. You can use draft pull request if it's still a work in progress. Here are a few guidelines to follow:
- Include tests for feature or bug fixes.
- Update the documentation for significant features.
- Ensure tests are passing on CI.