=== Pre-commit configuration ===
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
  rev: v9.23.0
  hooks:
  - id: commitlint
    name: lint commit message for Conventional Commits compliance
    additional_dependencies:
    - '@commitlint/config-conventional'
  stages: [commit-msg]
  args:
  - "--extends=@commitlint/config-conventional"

- repo: local
  hooks:
  - id: run-tests
    name: Run pytest before push
    entry: pytest
    language: system
    stages: [pre-push]
    pass_filenames: false
    always_run: true
