Skip to content
/ janet Public template

Template python repository

Notifications You must be signed in to change notification settings

szewczykmira/janet

Repository files navigation

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

About

Template python repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages