repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.0.1
    hooks:
        - id: fix-encoding-pragma
          args: ['--remove']
        - id: debug-statements
        - id: check-merge-conflict
        - id: check-ast
        - id: end-of-file-fixer
        - id: trailing-whitespace

-   repo: https://github.com/timothycrosley/isort
    rev: 5.12.0
    hooks:
    - id: isort
      additional_dependencies: [toml]

-   repo: https://github.com/charliermarsh/ruff-pre-commit
    # Ruff version.
    rev: "v0.2.2"
    hooks:
    # Run the linter.
    - id: ruff
      args: [ --fix ]
    # Run the formatter.
    - id: ruff-format
