- Clone
gitrepo:
git clone {{ cookiecutter.git_repo_url }}.git
cd {{ cookiecutter.project_name.lower().replace(' ', '-') }}- If you don't have
uvinstalled run:
make uv-download- Initialize uv and install
pre-commithooks:
make install
make pre-commit-install- Run formatters, linters, and tests. Make sure there is no errors.
make format lint testMakefile
contains a lot of functions
for faster development.
1. Download uv
To download and install uv run:
make uv-install2. Install all dependencies and pre-commit hooks
Install requirements:
make installPre-commit hooks coulb be installed after git init via
make pre-commit-install3. Codestyle
Automatic formatting uses ruff formatter
make codestyle
# or use synonym
make formatCodestyle checks only, without rewriting files:
make check-codestyleUpdate all libraries to the latest version using one command
make update4. Code security
This command identifies security issues with Safety
make check-safety5. Type checks
Run mypy static type checker
make mypy6. Tests with coverage
Run pytest
make test7. All linters
Of course there is a command to rule run all linters in one:
make lint8. Docker
Run with docker compose
make docker-up9. Cleanup
Delete cache and build files:
make cleanupThis project was generated with python-package-template