poetry
A set of tasks for a Python Poetry project
poetry template details
- Status: draft
- File: https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.d/poetry.yml
- Home: https://gitlab.com/op_so/task/task-templates
- License: MIT
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=
| 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. (*)
| Arguments | Description |
|---|---|
| - | - |
Requirements:
- poetry
- Black
- Mypy
- Ruff
- Flake8
poetry:pytest
[POETRY] run tests. (*)
| Arguments | Description |
|---|---|
| - | - |
Requirements:
- poetry
- Pytest
poetry:run
[POETRY] How to run code.
| Arguments | Description |
|---|---|
| - | - |
Requirements:
- None