From 60382d752adfd997118b6880adf59d8f9bf7c4cc Mon Sep 17 00:00:00 2001 From: Emerson Knapp Date: Fri, 14 Aug 2026 11:05:12 -0700 Subject: [PATCH] feat: cpp format, do not indent extern blocks Signed-off-by: Emerson Knapp --- README.md | 2 +- polymath_code_standard/config/clang-format | 1 + pyproject.toml | 2 +- uv.lock | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79553bc..be8e2ed 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Use only the hooks that apply to your project. --- repos: - repo: https://github.com/polymathrobotics/polymath_code_standard - rev: v2.3.1 + rev: v2.4.0 hooks: # File hygiene for all staged files - id: polymath-general diff --git a/polymath_code_standard/config/clang-format b/polymath_code_standard/config/clang-format index 3699417..d111259 100644 --- a/polymath_code_standard/config/clang-format +++ b/polymath_code_standard/config/clang-format @@ -59,6 +59,7 @@ IncludeCategories: - Regex: '"([A-Za-z0-9.\Q/-_\E])+"' Priority: 4 IndentAccessModifiers: false +IndentExternBlock: NoIndent IndentPPDirectives: BeforeHash PackConstructorInitializers: Never PointerAlignment: Middle diff --git a/pyproject.toml b/pyproject.toml index c5ec1bd..dd4367f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "polymath-code-standard" -version = "2.3.1" +version = "2.4.0" description = "Polymath Code Standard pre-commit hooks" requires-python = ">=3.10" dependencies = [ diff --git a/uv.lock b/uv.lock index 1435f5d..061c12c 100644 --- a/uv.lock +++ b/uv.lock @@ -801,7 +801,7 @@ wheels = [ [[package]] name = "polymath-code-standard" -version = "2.3.1" +version = "2.4.0" source = { editable = "." } dependencies = [ { name = "ansible-lint" },