- id: poetry-check
  name: poetry-check
  description: run poetry check to validate config
  entry: poetry check
  language: python
  pass_filenames: false
  files: ^(.*/)?(poetry\.lock|pyproject\.toml)$

- id: poetry-lock
  name: poetry-lock
  description: run poetry lock to update lock file
  entry: poetry lock
  language: python
  pass_filenames: false
  files: ^(.*/)?(poetry\.lock|pyproject\.toml)$

- id: poetry-install
  name: poetry-install
  description: run poetry install to install dependencies from the lock file
  entry: poetry install
  language: python
  pass_filenames: false
  stages: [post-checkout, post-merge]
  always_run: true
