- Development is run through Poetry
git clone https://github.com/ddkasa/ulauncher-toggl-extension
cd toggl-api-wrapper
$ poetry shell
$ poetry install
-
Lint with
ruff ulauncher_toggl_extension
-
Check typing with
mypy ulauncher_toggl_extension
-
Make sure to install pre-commit hook with
pre-commit install
-
In order to debug/test the extension inside Ulauncher:
- Move extension into this folder:
~/.local/share/ulauncher/extensions/
- Run:
VERBOSE=1 ULAUNCHER_WS_API=ws://127.0.0.1:5054/ulauncher-toggl-extension PYTHONPATH=/usr/lib/python3.12/site-packages /usr/bin/python3 /home/dk/.local/share/ulauncher/extensions/ulauncher-toggl-extension/main.py
- All tests are run through
pytest
- Basic unit tests through
pytest -m unit
- Integration tests through
pytest -m integration
- For multiple python versions run:
tox
- Merge with production branch
- Make sure to add new development files to the .gitattributes file
- Commit messages are based on Conventional Commits