pre-commit: Add spicy-format

This excludes the larger protocol analyzers. These should be formatted
during the 7.2 cycle, shortly before 8.0.
This commit is contained in:
Arne Welzel 2024-09-05 17:00:37 +02:00
parent d4a646cd21
commit 01ea74f8a8

View file

@ -32,3 +32,10 @@ repos:
hooks: hooks:
- id: typos - id: typos
exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES)$' 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/.*)'