This repository is a template for a python 🐍 project using the uv
container. The intent is to do all the basic
lifting for a python project so that people can hit the ground running with their ideas.
- Create a new repository, using this one as a template.
- Change the
project
folder name to the kebab-case name of your project. - Update the information in the
pyproject.toml
file with your project's and your personal information. - Update the information in the
CODEOWNERS
file so that it uses your GitHub ID and the kebab-case name of your project folder.
- pre-commit: This serves as the codebase formatter and linter.
- requests: This is the project's means of communicating with external APIs.
- responses: This is used in conjunction with Pytest and Requests to mock API calls in the test module.
uv
version:0.5.7
- Download at: link.
- Go into the base directory of the repository and type
make env
oruv env
into the terminal. - Use the
make run
command.
- Any modules should be added via the
uv add [module]
command.- Example:
uv add pre-commit
- Example:
make create-requirements
: Creates and/or updates therequirements.txt
file.make env
: Creates or activates auv
virtual environment.make lint
: Runspre-commit
.make run
: Runs themain
function in theproject
folder.make test
: Runs test cases in thetests
directory.