--- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: check-added-large-files args: - --maxkb=1024 - --enforce-all exclude: (^binaries/data/mods/public/maps/.*\.xml$) - id: check-case-conflict - id: check-executables-have-shebangs - id: check-json - id: check-merge-conflict - id: check-shebang-scripts-are-executable - 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: trailing-whitespace exclude: | (?x)( ^libraries/| ^source/third_party/glad/src| ^source/tools/replayprofile/jquery| ^source/tools/templatesanalyzer/tablefilter| \.dae| \.patch$ ) - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.12.9 hooks: - id: ruff-check args: - --output-format=full exclude: ^source/tools/webservices/ - id: ruff-format args: - --diff exclude: ^source/tools/webservices/ - repo: local hooks: - id: non-breaking-space-in-0ad name: check for non-breaking space in "0 A.D." description: | Verify a non-breaking spaces is used in the project name ("0 A.D"). entry: '0(?!(\xc2\xa0|\\xa0)A\.D\.)\s?(?