# Pre-commit hooks: https://pre-commit.com
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files

repos:
  # Use same tool versions as [dev] in pyproject.toml so CI and pre-commit match
  - repo: https://github.com/psf/black
    rev: 26.1.0
    hooks:
      - id: black
        language_version: python3
        args: [--config, pyproject.toml]
        files: ^(src/pycharter|tests)/

  - repo: https://github.com/pycqa/isort
    rev: 5.13.2
    hooks:
      - id: isort
        args: [--settings-path, pyproject.toml]
        files: ^(src/pycharter|tests)/
