PoetryUp updates dependencies and bumps their version in the pyproject.toml
file with respect to their version constraint. The poetry.lock
file will be
recreated as well. PoetryUp runs
poetry commands, thus it's required
to be installed. The difference between running poetry update
and poetryup
,
is that the latter also modifies the pyproject.toml
file.
poetryup --help
Use PoetryUp with GitHub actions to automate the process of updating dependencies, for reference see this project's workflow configuration.
Contributions are welcome via pull requests.
If you encounter any problems, please file an issue along with a detailed description.
Activate virtual environment
poetry shell
Install dependencies
poetry install --remove-untracked
Install git hooks
pre-commit install --hook-type pre-commit
Run tests
pytest tests
Run linter
flake8 .
Format code
black .
Sort imports
isort .
Install current project from branch
poetry add git+https://github.com/MousaZeidBaker/poetryup.git#branch-name