repos:
  - repo: https://github.com/psf/black
    rev: 23.7.0  # Use the latest stable version of black
    hooks:
      - id: black
        name: Black code formatter
        args: ["--line-length", "88"]  # Actively fix code, no --check

  - repo: https://github.com/pre-commit/mirrors-autopep8
    rev: v2.0.4  # Use a specific stable version
    hooks:
      - id: autopep8
        args: [ "--in-place", "--aggressive", "--max-line-length=88" ]

  - repo: https://github.com/pycqa/flake8
    rev: 6.1.0  # Use the latest stable version of flake8
    hooks:
      - id: flake8
        name: Flake8 linter
        args: ["--max-line-length=88", "--ignore=E203,W503"]  # Match black's behavior