Template python repository
- Project is running with python 3.9+
- Poetry is required to work with dependencies
- Clone your reposiotory:
git clone [email protected]:{username}/{repository_name}.git
- Enter the repository and create virtualenv with python 3.9
cd {repository_name}
mkvirtualenv -p python3.9 {repository_name}
# If you use just virtualenv then: virtualenv {repository_name}
- [Optional] you can update project's name in
pyproject.toml
- Install dependencies
poetry install
- Install pre-commit hooks
pre-commit install
pytest
- running test with checking test coverage
pytest --cov={repository_name} tests/
You can export requirements with poetry export > requirements.txt