This is a template that can be used generically for projects. As a package management tool, Rye is used.
Before using this template, please ensure the following software is installed:
Rye: Package management tool. The following command allows you to install Rye:
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
echo 'source "$HOME/.rye/env"' >> ~/.bashrc
source "$HOME/.rye/env"
The following dependencies will be automatically installed using Rye:
- Python 3.10.x (latest)
- Python Libraries
- The installed libraries are listed in the requirements.lock file.
After cloning this template repository, you will need to initialize your project repository to remove the template's .git directory and start with a fresh history.
Follow these steps:
- Navigate to the root of your cloned repository.
- Remove the existing .git directory:
rm -rf .git
- Initialize a new Git repository:
git init
- Add all files to the new repository:
git add .
- Commit the files to start your project with a clean slate:
git commit -m "Initial commit."
- Now, you can add your remote repository and push your changes:
# Replace <your-repository-URL> with the URL of your new GitHub repository.
git remote add origin <your-repository-URL>
git push -u origin main
make install
make run_main
make pre-commit