Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 684 Bytes

DEV.md

File metadata and controls

34 lines (29 loc) · 684 Bytes

Dev Install

poetry install

# install uhabits_converter as symlink to avoid reinstall whenever code changes
# instead of pip install /path/to/uhabits_converter
# https://github.com/python-poetry/poetry/issues/1135
# workaround using __name__ == '__main__' and fire
PYTHONPATH=$(pwd) poetry run task dev

Tests

poetry run task tests

Linting

poetry run task lint
poetry run task isort
poetry run task mypy

Version management

# pass args e.g. patch, minor, major, choose to commit changes or not
poetry run bumpversion --commit --tag patch

GitHooks

To setup git hooks run:

poetry run pre-commit install