Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tools/python/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@ tasks:
- task: os:install
vars:
VERSION: "{{.VERSION}}"

venv:
desc: Install a python venv in the venv
deps: [pyenv]
cmds:
- python -m venv "{{.TASKFILE_DIR}}/venv"

fmt:install:
desc: Install isort and black
deps: [pyenv, venv]
cmds:
- pip install black
- pip install isort

fmt:
desc: Format python code.
deps: [fmt:install]
cmds:
- source venv/bin/activate &&
isort *.py scripts core_services
- source venv/bin/activate &&
black -l 120 *.py scripts core_services