Thank you for your interest in contributing to the force-ai
project! Please read the following guidelines before submitting a merge request.
First, clone the repository to your local machine and navigate into the project directory:
git clone [email protected]:NCKU-AISLAB/force-ai.git
cd force-ai
Then, you can choose one of the following options to set up your development environment.
uv
is an extremely fast Python package and project manager. If you don't have uv
installed, check out the installation guide to get started.
Create a virtual environment and install the dependencies:
uv venv venv
source venv/bin/activate
uv pip install -r requirements.txt
uv run mkdocs serve
Open your browser and navigate to http://localhost:8000
to view the website.
Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
mkdocs serve
Open your browser and navigate to http://localhost:8000
to view the website.
We follow the GitHub flow for our development process.
main
: The default branch, protected from direct commits.feature/<name>
: Used for new features.bugfix/<name>
: Used for bug fixes.docs/<name>
: Used for documentation and website updates.
Branch names should be lowercase, use hyphens (-
) to separate words, and be descriptive yet concise. For example:
git checkout -b feature/add-cli-logging
We follow the Conventional Commits standard for commit messages.
Commit messages should be clear, concise, and follow the format:
<type>[(optional scope)]: <subject>
[optional body]
[optional footer(s)]
Some common commit types include:
feat:
for new featuresfix:
for bug fixesdocs:
for documentation updatesrefactor:
for code refactoringtest:
for test-related changeschore:
for maintenance tasks
Minimal example:
git commit -m "feat: add logging support"
More examples can be also found in Conventional Commits.
-
Ensure your branch is up to date with
main
:git fetch origin git rebase origin/main
-
Push your branch to the remote repository:
git push origin feature/add-cli-logging
-
Open a Pull Request (PR) and provide a clear description of your changes, referencing any related issues.
-
Be responsive to reviewer feedback. All PRs will be reviewed before being merged.
Thank you for contributing to force-ai
! 🎉