From 5594a1952670d3ec0736e8c926f74def0a637972 Mon Sep 17 00:00:00 2001 From: jo <ljonas@riseup.net> Date: Mon, 10 Oct 2022 23:14:25 +0200 Subject: [PATCH] chore: add basic pre-commit config --- .codespellignore | 0 .pre-commit-config.yaml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .codespellignore create mode 100644 .pre-commit-config.yaml diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 0000000..e69de29 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ef23f4e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,34 @@ +--- +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: check-symlinks + - id: destroyed-symlinks + + - id: check-yaml + + - id: check-merge-conflict + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + + - id: requirements-txt-fixer + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.7.1 + hooks: + - id: prettier + files: \.(md|yml|yaml|json)$ + + - repo: https://github.com/codespell-project/codespell + rev: v2.2.1 + hooks: + - id: codespell + args: [--ignore-words=.codespellignore] -- GitLab