exclude: '^.*patches|file_packager.*$' repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black rev: 19.10b0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 rev: 3.7.8 hooks: - id: flake8 types: [file, python] # only check for unused imports, as the rest is done by black args: [--select=F401]