From f4dbc584e16c384b13f6e68f66020e3273884550 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 18 Nov 2022 21:27:31 +0100 Subject: [PATCH] chore: add pre-commit config --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ changes/changelog.d/add_pre-commit.misc | 1 + 2 files changed, 25 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 changes/changelog.d/add_pre-commit.misc diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..c4585b920 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +--- +# 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-json + - id: check-yaml + - id: check-xml + - id: check-toml + + - id: check-vcs-permalinks + - id: check-merge-conflict + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace diff --git a/changes/changelog.d/add_pre-commit.misc b/changes/changelog.d/add_pre-commit.misc new file mode 100644 index 000000000..ed90c22d3 --- /dev/null +++ b/changes/changelog.d/add_pre-commit.misc @@ -0,0 +1 @@ +Add pre-commit to development tools