.pre-commit-config.yaml 908 bytes
repos:
  - repo: https://github.com/humitos/mirrors-autoflake.git
    rev: v1.1
    hooks:
      - id: autoflake
        args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable', "--expand-star-imports"]
  - repo: https://github.com/psf/black
    rev: '22.8.0'
    hooks:
    -   id: black
        args: ["--line-length", "88"]
  - repo: https://github.com/pycqa/isort
    rev: 5.10.1
    hooks:
      - id: isort
        name: isort (python)
        args: ["--profile", "black", "--filter-files"]
  -   repo: https://github.com/pycqa/flake8
      rev: '5.0.4'
      hooks:
      -   id: flake8
          args: ["--max-line-length", "88"]
  # - repo: local
  #   hooks:
  #     - id: mypy
  #       name: mypy
  #       entry: "make mypy"
  #       language: system
  #       # use require_serial so that script
  #       # is only called once per commit
  #       require_serial: true