---
+default_language_version:
+ python: python3
+ node: "14.13.0"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
- id: check-json
- id: trailing-whitespace
- - repo: https://github.com/prettier/prettier
- rev: 2.0.5
+ - repo: https://github.com/prettier/pre-commit
+ rev: v2.1.2
hooks:
- id: prettier
+ stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
- id: gitlint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
- sha: 2.0.2
+ rev: 2.1.5
hooks:
- id: shellcheck
exclude: >
)$
- repo: https://github.com/ambv/black
- rev: stable
+ rev: 20.8b1
hooks:
- id: black
hooks:
- id: bandit
# Bandit does not need to run on test code
- exclude: tests/*
+ exclude: ^tests/
- repo: https://github.com/pycqa/pydocstyle
rev: 5.0.2
hooks:
- id: yamllint
- - repo: local
+ - repo: https://github.com/btford/write-good
+ rev: v1.0.3
hooks:
- # TODO: Switch to upstream hook when https://github.com/btford/write-good/pull/119 is merged.
- id: write-good
- name: write-good
- description: Check docs for English prose with write-good
- entry: write-good
- language: node
- files: "\\.(rst|md|markdown|mdown|mkdn)$"
- additional_dependencies: ["write-good"]
exclude: docs/jenkins.rst