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

- id: poetry-lock
  name: poetry-lock
  description: run poetry lock to update lock file
  entry: poetry lock
  language: python
  pass_filenames: false

- id: poetry-export
  name: poetry-export
  description: run poetry export to sync lock file with requirements.txt
  entry: poetry export
  language: python
  pass_filenames: false
  files: ^poetry.lock$
  args: ["-f", "requirements.txt", "-o", "requirements.txt"]
