Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks: add poetry-update hook #8327

Merged
merged 9 commits into from
Aug 28, 2023
Merged

hooks: add poetry-update hook #8327

merged 9 commits into from
Aug 28, 2023

Commits on Aug 28, 2023

  1. hooks: add poetry-update hook

    When switching branches keeping dependencies in sync with the lock file
    can become cumbersome, because it is easy to forget. Therefore poetry
    supplies a pre-commit hook, that can take care of it.
    After switching branches or checking out a file `poetry install --sync`
    is invoked and keeps everything nice and tidy.
    To make use of that, you need to either supply `default_install_hook_types`
    inside of your `.pre-commit-config.yaml` or you need to manually install
    them with: `pre-commit install --install-hooks -t pre-commit -t post-checkout -t
    post-merge`.
    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    f328c52 View commit details
    Browse the repository at this point in the history
  2. hooks: rename hook and remove option

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    635fd0e View commit details
    Browse the repository at this point in the history
  3. hooks: offer sync option, but make it overwritable

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    d832729 View commit details
    Browse the repository at this point in the history
  4. docs: change name of the hook and add the hook to minimal example

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    c1ccc2a View commit details
    Browse the repository at this point in the history
  5. hooks: rename poetry-sync into poetry-install

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    9f61f92 View commit details
    Browse the repository at this point in the history
  6. hooks: remove args key

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    00ac310 View commit details
    Browse the repository at this point in the history
  7. docs: remove the additional arg from documentation

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    6293d68 View commit details
    Browse the repository at this point in the history
  8. docs: formatting

    Aljoscha Gerber authored and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    4c46fe7 View commit details
    Browse the repository at this point in the history
  9. change description of poetry install hook

    Co-authored-by: Randy Döring <[email protected]>
    alsmnn and radoering committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b2af90b View commit details
    Browse the repository at this point in the history