Skip to content

Commit 64a264a

Browse files
committed
fix(ci): re-format gleam files with gleam 1.14.0
1 parent d58808f commit 64a264a

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/a2ml_gleam/parser.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
// A2ML syntax is similar to Markdown with extensions for directives (@)
88
// and attestation blocks (!attest).
99

10-
import gleam/list
11-
import gleam/result
12-
import gleam/string
1310
import a2ml_gleam/types.{
1411
type Attestation, type Block, type Directive, type Document, type Inline,
1512
type Manifest, type TrustLevel, Attestation, AttestationBlock, Automated,
1613
BlockQuote, CodeBlock, Directive, DirectiveBlock, Document, Emphasis, Heading,
1714
Link, ListBlock, Manifest, Paragraph, Reviewed, Strong, Text, ThematicBreak,
1815
Unverified, Verified,
1916
}
17+
import gleam/list
18+
import gleam/result
19+
import gleam/string
2020

2121
/// Error type for parse failures.
2222
pub type ParseError {

src/a2ml_gleam/renderer.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
// Produces A2ML-formatted output from a parsed Document structure,
77
// suitable for round-tripping through parse -> modify -> render.
88

9-
import gleam/int
10-
import gleam/list
11-
import gleam/string
129
import a2ml_gleam/types.{
1310
type Attestation, type Block, type Document, type Inline, type TrustLevel,
1411
AttestationBlock, Automated, BlockQuote, CodeBlock, DirectiveBlock, Emphasis,
1512
Heading, Link, ListBlock, Paragraph, Reviewed, Strong, Text, ThematicBreak,
1613
Unverified, Verified,
1714
}
15+
import gleam/int
16+
import gleam/list
17+
import gleam/string
1818

1919
/// Render a Document to A2ML-formatted text.
2020
///

test/a2ml_gleam_aspect_test.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
// performance, and resilience. These complement the unit and contract tests
88
// by validating behavioural aspects that cut across the whole API surface.
99

10-
import gleam/list
11-
import gleam/string
1210
import a2ml_gleam/parser
1311
import a2ml_gleam/renderer
1412
import a2ml_gleam/types.{Verified}
13+
import gleam/list
14+
import gleam/string
1515

1616
// ---------------------------------------------------------------------------
1717
// Aspect: Security — empty and whitespace inputs are handled gracefully

test/a2ml_gleam_bench_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// verify that bulk operations complete without error rather than asserting
99
// wall-clock bounds (which would be flaky in CI).
1010

11-
import gleam/list
1211
import a2ml_gleam/parser
1312
import a2ml_gleam/renderer
1413
import a2ml_gleam/types.{Automated, Reviewed, Unverified, Verified}
14+
import gleam/list
1515

1616
// ---------------------------------------------------------------------------
1717
// Benchmark: parse 500 documents without error

test/a2ml_gleam_contract_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// Tests the behavioural contracts that the API must uphold regardless of input.
77
// Each test validates a named invariant.
88

9-
import gleam/string
109
import a2ml_gleam/parser
1110
import a2ml_gleam/renderer
1211
import a2ml_gleam/types.{Automated, Reviewed, Unverified, Verified}
12+
import gleam/string
1313

1414
// ---------------------------------------------------------------------------
1515
// INVARIANT: parse of empty string returns Error(EmptyInput)

test/a2ml_gleam_property_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// Validates determinism, idempotency, and structural invariants across
77
// a range of inputs without relying on external property-testing libraries.
88

9-
import gleam/list
109
import a2ml_gleam/parser
1110
import a2ml_gleam/renderer
1211
import a2ml_gleam/types.{Automated, Reviewed, Unverified, Verified}
12+
import gleam/list
1313

1414
// ---------------------------------------------------------------------------
1515
// Property: parse is deterministic — same input always produces same output

0 commit comments

Comments
 (0)