The project setup includes:
- Python >= 3.10
- Ubuntu, MacOS, Windows latest OS versions
- PDM for dependency management
- GitHub Actions and pre-commit for linting, formatting, CI/CD
- MIT license
- The above badges of this README.md
- Install Python 3.10 in your local machine. For MacOS use
brew install python@3.10
- Click on the
Use this template
button at this page to create a new repository from this template (you must be logged in to GitHub to see the button). - Name your repository and click
Create repository from template
. If the repository name is more than one word, make sure to use -hyphens- instead of spaces or underscores. - Git clone the repository to your local machine.
- Cd into the repository directory.
- Run template_setup.py with
python3 template_setup.py [--user-name YOUR_GIT_USER_NAME] [--user-email YOUR_GIT_USER_EMAIL]
- Follow the instructions in the terminal.
- Select
y
to make project installable when prompted by PDM
- Select
- Rename file contents, names, and directories that contains template repository name with the new repository name
- Rename user name and user email in and
README_main.md
- Configure GitHub user name and user email locally
- Remove
pdm.lock
,pyproject.toml
, andrequirements.txt
- Remove
README.md
and renameREADME_main.md
toREADME.md
- If not installed pip install PDM in your local machine
- Update PDM to the latest version
- PDM init with Python 3.10
- Install dependencies with PDM
- Install pre-commit hooks to local
.git
folder
- Remove
template_setup.py
- Prompt user an option to git add commit and push
- Remove
.mypy_cache
and.pytest_cache
folders