This project is a template for Python repositories. It includes a Makefile with commands for formatting, linting, and installing dependencies. It also includes a pre-configured Github Actions workflow for CI/CD.
Let the following note be in your project-specific Readme file:
Note
This project uses the python-template
The project uses Pyenv for managing Python versions and Pipenv for managing dependencies. Find more details in the Development section.
The project uses Pydantic
for data validation and settings management.
The project uses Ruff
for formatting, Isort
for sorting imports, and Mypy
for static typing.
Recommended to use with Makefile
commands. For more information look at the
Makefile.
The project uses Github Actions for CI/CD. Look at the .github/workflows for more information. The package includes the linting workflow per default.
The project uses Makefile for automating tasks. Look at the Makefile for more information.
The provided Makefile includes the following commands:
make deps # Install dependencies
make format # Format code
make lint # Lint code
You will need to have Python 3.12 and pipenv installed. The next step is to checkout the repository and install the Python dependencies. Then, you will be able to utilize the CLI and run the tests. The following assumes a Debian/Ubuntu machine; your mileage may vary.
You can use pyenv for getting a specific python version. Once you have pyenv installed, you can install a specific python version:
pyenv install 3.12
Install pipenv:
pip install --user pipenv
You can use the provided Makefile files to install the dependencies.
make deps
Alternatively, you can install the dependencies manually:
pipenv install --dev
You can use the provided .env.example
file to setup the environment variables.
cp .env.example .env