diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d227f01..238e483 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,24 @@ repos: -- hooks: - - id: end-of-file-fixer - - id: mixed-line-ending - args: [--fix=lf] - - id: trailing-whitespace - args: [--markdown-linebreak-ext=md] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 -- hooks: - - id: commitizen - - id: commitizen-branch - stages: - - push - repo: https://github.com/commitizen-tools/commitizen - rev: v3.28.0 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: end-of-file-fixer + name: All files must end with an empty line + - id: mixed-line-ending + name: Fix mixed line endings in files (x-platform) + args: [--fix=lf] + - id: trailing-whitespace + name: Fix trailing space (ignore MD code) + args: [--markdown-linebreak-ext=md] + + - repo: https://github.com/commitizen-tools/commitizen + rev: v3.28.0 + hooks: + - id: commitizen + name: commitizen check + description: > + Check whether the current commit message follows committing rules. Allow + empty commit messages by default, because they typically indicate to Git + that the commit should be aborted. + entry: cz check + stages: [commit-msg] diff --git a/README.md b/README.md index 181d8a9..6afe037 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This guide is an open-source non-profit initiative, [licensed](LICENSE.html) und - [In your browser](guide.html) - [PDF](export/guide.pdf) - [OpenDocument (ODT)](export/guide.odt) -- Raw [Markdown](https://github.com/Anon-Planet/thgtoa/raw/master/guide.md) text. +- Raw [Markdown](https://raw.githubusercontent.com/Anon-Planet/thgtoa/main/guide.md). Mirrors: - Tor Onion Mirror: