Contributing¶
Welcome! We appreciate your interest in contributing to appfl. You can contribute to the package by reporting issues, suggesting enhancements, or contributing directly to the code base through pull requests (PRs). Please follow the guidelines below to ensure a smooth contribution process.
Issues¶
Report bugs using the APPFL GitHub Issue Tracker. A useful bug report includes details, background, and sample code. For example, try to include:
A quick summary and/or background.
Steps to reproduce:
Be specific!
Give sample code if you can.
What you expected to happen.
What actually happens.
Any additional information that could help us.
Why you think this might be happening.
Things you tried that didn’t work.
Etc.
Local Development and Pull Requests¶
When you want to develop appfl locally to create a pull request, you can follow the steps below to set up your development environment and test your changes before submitting a PR.
Open an issue if necessary.
For small bugs, feel free to open a pull request directly.
For larger bugs or enhancements, please open an issue first. Having an associated issue makes it easier to track changes and discuss proposals before you get started.
Clone the repository and install it in editable mode. Note: If you are an external contributor, fork the repository first and clone your fork.
git clone https://github.com/APPFL/APPFL.git # Or your forked repository
cd APPFL
pip install -e ".[dev,mpi,examples]"
Create a new branch for your changes from the
mainbranch.
Note
We suggest naming your branch developer_name/issue_number (e.g., zilinghan/issue42) if your pull request is addressing an open issue, or developer_name/feature_name-start_date (e.g., kibaek/mpi-2025-01-01) if you are working on a new feature.
git checkout -b my-branch-name
Make your changes.
If you’ve added code that should be tested, add tests.
If you’ve changed APIs, update the documentation.
Ensure the test suite passes and your code lints. We use
pre-committo enforce code style and formatting, and your PR must pass the pre-commit checks. Install and run it as follows:
pip install pre-commit
pre-commit install
pre-commit run --all-files
Open the pull request on GitHub.