From 01ea74f8a894803d845751f20decb58bdc54d061 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 5 Sep 2024 17:00:37 +0200 Subject: [PATCH] pre-commit: Add spicy-format This excludes the larger protocol analyzers. These should be formatted during the 7.2 cycle, shortly before 8.0. --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3336960177..e5638912cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,10 @@ repos: hooks: - id: typos exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES)$' + +- repo: https://github.com/bbannier/spicy-format + rev: v0.15.0 + hooks: + - id: spicy-format + # TODO: Reformat existing large analyzers just before 8.0. + exclude: '(^testing/.*)|(protocol/ldap/.*)|(protocol/quic/.*)|(protocol/websocket/.*)'