--- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks exclude: >- myclirc|netrc|packet-cli|mycli-history|scwrc|gcloud\.json|\.envrc\.private - id: check-toml files: Pipfile - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin args: - | --line-length=79 - repo: https://github.com/PyCQA/prospector rev: 1.3.1 hooks: - id: prospector exclude: *excluded_pythonscripts args: - |- --max-line-length=79 - |- --with-tool=pyroma - |- --with-tool=bandit - |- --without-tool=pep257 - |- --doc-warnings - |- --test-warnings - |- --full-pep8 - |- --strictness=high - |- --no-autodetect additional_dependencies: - bandit - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.8.4 hooks: - id: flake8 exclude: *excluded_pythonscripts args: - |- --doctests additional_dependencies: - flake8-bugbear - repo: https://github.com/Yelp/detect-secrets.git rev: v0.14.3 hooks: - id: detect-secrets exclude: rabbitmqadmin|\.config/git/config|Pipfile\.lock - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git rev: v0.6.0 hooks: - id: shell-lint exclude: &excluded_shellscripts |- \.bash_completion\.d/(docker-machine\.bash|fabric-completion.bash|docker-compose)|\.travis/travis\.sh|toolbox - id: shell-lint name: shell-lint .bashrc files: \.bashrc types: [text] - repo: https://github.com/shellcheck-py/shellcheck-py.git rev: v0.7.1.1 hooks: - id: shellcheck exclude: *excluded_shellscripts - id: shellcheck name: Shellcheck .bashrc files: \.bashrc types: [text] - repo: https://github.com/executablebooks/mdformat.git rev: 0.5.3 hooks: - id: mdformat