Contains tools used by the GPN Einkauf Team to manage their workload.
Located at /src/kauf is a command line utility with some neat commands to make shopping simpler.
Create a shopping list from JIRA issues
kauf jira list --jira-url jira.example.com --tag "Buy Now" --hedgedoc-url "pad.example.com"Transition all JIRA issues from a shopping list where all items from that issue are ticked
kauf jira update --hedgedoc-url "pad.example.com/XXXXX" --jira-url jira.example.com --transition "Mark arrived"Create a new virtual environment, e.g. with virtualenv .venv and activate it source .venv/bin/activate.
kauf can be installed via pipx with the following command:
pipx install .Then call it
kauf --helpCreate a new virtual environment, e.g. with virtualenv .venv and activate it source .venv/bin/activate.
Dependencies
To install the dependencies locally run
pip install .Running locally
To avoid having to install the command line tool to test it locally you can run it as well with
python src/kaufVerbose mode
Use the --verbose flag for verbose output.
kauf --verbose ...Linting
Run ruff format . and ruff check . --fix for local linting.