From c763c010b82423e3e20976968292b4610f71440c Mon Sep 17 00:00:00 2001 From: Dunedan Date: Sat, 24 Aug 2024 13:20:23 +0200 Subject: [PATCH] Add a bunch of additional pre-commit hooks --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed03308d0e..e8728bc637 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,26 @@ --- repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-case-conflict + - id: check-executables-have-shebangs + exclude: ^build/premake/premake5 + - id: check-json + - id: check-merge-conflict + - id: check-shebang-scripts-are-executable + exclude: ^build/premake/premake5 + - id: check-symlinks + - id: check-toml + - id: check-xml + exclude: | + (?x)( + ^binaries/data/mods/_test.xero/a/b/test1.xml| + ^binaries/data/mods/_test.xero/test1.xml| + ^binaries/data/mods/_test.sim/simulation/templates.illformed.xml| + ^binaries/data/mods/public/maps/.*\.xml + ) + - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.1 hooks: