git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

commit fe25cb6c609ebf1ade4cbda7891ae2f77ca4ff7b
parent 296a5f0ccfe611da167afe4984738a2cd33b01d5
Author: Luís Ferreira <[email protected]>
Date:   Sat, 15 Jan 2022 04:16:51 +0000

feat(pre-commit): add more hooks to pre-commit config

Signed-off-by: Luís Ferreira <[email protected]>

Diffstat:
M.pre-commit-config.yaml | 36++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+), 0 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -5,24 +5,35 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + - id: mixed-line-ending + - id: fix-byte-order-marker + - id: check-merge-conflict - id: check-json - id: check-yaml - id: sort-simple-yaml - id: check-xml - id: check-merge-conflict - id: check-ast + - id: check-executables-have-shebangs - id: check-shebang-scripts-are-executable - id: check-toml + - id: check-added-large-files + - id: check-symlinks - id: destroyed-symlinks - id: detect-private-key - id: fix-encoding-pragma args: [--remove] - id: no-commit-to-branch args: [--branch, master] + - id: requirements-txt-fixer - repo: https://github.com/pre-commit-ci/pre-commit-ci-config rev: v1.5.1 hooks: - id: check-pre-commit-ci-config +- repo: https://github.com/pre-commit/pre-commit + rev: v2.16.0 + hooks: + - id: validate_manifest - repo: https://github.com/asottile/reorder_python_imports rev: v2.6.0 hooks: @@ -42,6 +53,31 @@ repos: rev: v1.20.0 hooks: - id: setup-cfg-fmt +- repo: https://github.com/sirosen/check-jsonschema + rev: 0.9.1 + hooks: + - id: check-github-workflows + - id: check-github-actions + - id: check-azure-pipelines + - id: check-readthedocs + - id: check-travis +- repo: https://github.com/AleksaC/hadolint-py + rev: v2.8.0 + hooks: + - id: hadolint + args: + - '--ignore' + - 'DL3059' +- repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.8.0.3 + hooks: + - id: shellcheck + args: + - "--exclude=1071,1090,1091,2001" +- repo: https://github.com/asottile/yesqa + rev: v1.3.0 + hooks: + - id: yesqa ci: autofix_prs: false autoupdate_commit_msg: 'pre-commit: bump repositories'