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