repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.1.3
    hooks:
    -   id: ruff
        language_version: python3
    -   id: ruff-format
        language_version: python3
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
    -   id: trailing-whitespace
        exclude: |
          (?x)^(
              .tx/|
              src/wiki/static/wiki/bootstrap/js/.*
          )$
    -   id: check-added-large-files
    -   id: debug-statements
    -   id: end-of-file-fixer
        exclude: |
          (?x)^(
              .tx/|
              src/wiki/static/wiki/bootstrap/js/.*|
              .*\.map
          )$
  - repo: https://github.com/asottile/pyupgrade
    rev: v3.15.0
    hooks:
    -   id: pyupgrade
        args: ["--py39-plus"]
