default_stages: [commit, push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black rev: 22.8.0 hooks: - id: black # https://pylint.pycqa.org/en/latest/user_guide/installation/pre-commit-integration.html - repo: local hooks: - id: pylint name: pylint entry: pylint language: system types: [python] args: [ '-rn', # Only display messages '-sn', # Don't display the score '--disable=C,R,W0511', # Disable C and R type messages, and TODO fixme warning ] # TODO add https://pre-commit.com/#docker hook for bash linting