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 args: [--allow-multiple-documents] - id: check-added-large-files - id: debug-statements - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.9.0.5 hooks: - id: shellcheck - repo: https://github.com/psf/black rev: 22.10.0 hooks: - id: black args: ["split_it", "./tests/"] types: [ python ] - repo: local hooks: - id: isort name: isort entry: isort language: system types: [python] require_serial: true - id: ruff name: ruff entry: ruff 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 ] require_serial: true