# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/python/black
    rev: 23.3.0
    hooks:
    -   id: black

-   repo: https://github.com/sqlalchemyorg/zimports
    rev: v0.6.0
    hooks:
    -   id: zimports

-   repo: https://github.com/pycqa/flake8
    rev: 5.0.0
    hooks:
    -   id: flake8
        additional_dependencies:
          - flake8-import-order
          - flake8-import-single==0.1.5
          - flake8-builtins
          - flake8-future-annotations>=0.0.5
          - flake8-docstrings>=1.6.0
          - flake8-rst-docstrings
          # flake8-rst-docstrings dependency, leaving it here
          # in case it requires a version pin
          - pydocstyle
          - pygments

-   repo: local
    hooks:
    -   id: black-docs
        name: Format docs code block with black
        entry: python tools/format_docs_code.py -f
        language: system
        types: [rst]
        exclude: README.*
