Skip to content

poetry

A set of tasks for a Python Poetry project

List of tasks

Tasks Description
poetry:install [POETRY] Install packages. Arguments: [RM_LOCK|R=] (*)
poetry:lint [POETRY] Lint code. (*)
poetry:pytest [POETRY] run tests. (*)
poetry:run [POETRY] How to run code.

global variables

Variables Description Default value
FILE_TASK_START Temporary file of the start date of a task {{.FILE_TASK_START | default ".poetry-task-start"}}

poetry:install

[POETRY] Install packages. Arguments: [RM_LOCK|R=] (*)

[POETRY] Install packages.
Usage: task poetry:install [RM_LOCK|R=<y|Y>]
Arguments Description
RM_LOCK | R Remove poetry.lock before the installation, to get the latest versions (optional, by default no)

Requirements:

  • poetry

poetry:lint

[POETRY] Lint code. (*)

[POETRY] Lint code with Black, Mypy, Ruff, Flake8.
Usage: task poetry:lint
Arguments Description
- -

Requirements:

  • poetry
  • Black
  • Mypy
  • Ruff
  • Flake8

poetry:pytest

[POETRY] run tests. (*)

[POETRY] run tests with pytest.
Usage: task poetry:pytest
Arguments Description
- -

Requirements:

  • poetry
  • Pytest

poetry:run

[POETRY] How to run code.


Arguments Description
- -

Requirements:

  • None