From 7acf34ca71ea964b1d62f30c9fca570d13eb6d38 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 5 Apr 2023 09:48:06 +0300 Subject: [PATCH] .pre-commit-config.yaml: merge with my other repos --- .pre-commit-config.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35a8ba58..5cdd5af8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,10 +10,39 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: fix-byte-order-marker + + # Markdown Table of Contents generation. + - repo: https://github.com/thlorenz/doctoc + rev: v2.2.0 + hooks: + - id: doctoc + # https://github.com/Mikaela/gist/blob/master/doctoc.txt + args: [--update-only] + + # GitHub Actions etc. configuration validity checking + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.22.0 + hooks: + - id: check-dependabot + - id: check-github-actions + - id: check-github-workflows + - id: check-gitlab-ci + + # Easierish licensing when attempting reuse compliancy + #- repo: https://github.com/fsfe/reuse-tool + # rev: v1.1.2 + # hooks: + # - id: reuse + + # prettier & editorconfig checker should probably be ran last + + # prettier - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.0-alpha.6" hooks: - id: prettier + + # .editorconfig validity checking - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: "2.7.1" hooks: