Bump spicy-format

This brings in two changes:

- proper indention for blocks starting with multiple comments
- switch the hook from `language: rust` to `language: python` to avoid
  nonsense due to pre-commit ignore Rust lock files,
  https://github.com/pre-commit/pre-commit/issues/3162.

The second one should help avoid future instances of the hook randomly
breaking as its dependencies accidentially break semver.
This commit is contained in:
Benjamin Bannier 2025-10-11 17:49:45 +02:00
parent 1bf0674073
commit 36a53dd365
3 changed files with 7 additions and 7 deletions

View file

@ -53,7 +53,7 @@ repos:
exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES|scripts/base/protocols/ssl/mozilla-ca-list.zeek|src/3rdparty/.*)$' exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES|scripts/base/protocols/ssl/mozilla-ca-list.zeek|src/3rdparty/.*)$'
- repo: https://github.com/bbannier/spicy-format - repo: https://github.com/bbannier/spicy-format
rev: v0.26.0 rev: v0.27.1
hooks: hooks:
- id: spicy-format - id: spicy-format
exclude: '^testing/.*' exclude: '^testing/.*'

View file

@ -247,9 +247,9 @@ type KrbWrapToken = unit {
self.trailer_ec = self.ec; self.trailer_ec = self.ec;
} else { } else {
if (!self.ctx_flags.sealed) if (!self.ctx_flags.sealed)
# If it's sealed, we'll consume until &eod anyhow # If it's sealed, we'll consume until &eod anyhow
# and ec/rrc shouldn't apply, otherwise, bail. # and ec/rrc shouldn't apply, otherwise, bail.
throw "Unhandled rc %s and ec %s" % (self.ec, self.rrc); throw "Unhandled rc %s and ec %s" % (self.ec, self.rrc);
} }
} }

View file

@ -562,9 +562,9 @@ type Packet = unit(from_client: bool, context: Context&) {
: void { : void {
if (self?.long_header && can_decrypt(self.long_header, context, self.crypto)) if (self?.long_header && can_decrypt(self.long_header, context, self.crypto))
# If we have parsed an initial packet that we can decrypt the payload, # If we have parsed an initial packet that we can decrypt the payload,
# determine the size to store into a buffer. # determine the size to store into a buffer.
self.packet_size = self.offset(); self.packet_size = self.offset();
} }
# Buffer the whole packet if we determined we have a chance to decrypt. # Buffer the whole packet if we determined we have a chance to decrypt.