You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
default_stages: [commit, push]
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
|
|
rev: v0.8.0.4
|
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
- 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
|