Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 893 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 893 Bytes

janet

Template python repository

Requirements:

  1. Project is running with python 3.9+
  2. Poetry is required to work with dependencies

Set up project:

  1. Clone your reposiotory:
git clone [email protected]:{username}/{repository_name}.git
  1. 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}
  1. [Optional] you can update project's name in pyproject.toml
  2. Install dependencies
poetry install
  1. Install pre-commit hooks
pre-commit install

Running tests

pytest
  • running test with checking test coverage
pytest --cov={repository_name} tests/

Exporting requirements

You can export requirements with poetry export > requirements.txt