Skip to content

Commit 9aa93b2

Browse files
committed
Enforce semantic line breaks with Snapper
1 parent c865ed4 commit 9aa93b2

4 files changed

Lines changed: 37 additions & 4 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Semantic line breaks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions: {}
10+
11+
jobs:
12+
semantic-line-breaks:
13+
name: Snapper
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
18+
with:
19+
persist-credentials: false
20+
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
21+
- name: Check semantic line breaks
22+
run: >-
23+
git ls-files -z -- '*.md' '*.rst' ':(exclude)vendored/**'
24+
| xargs -0 --no-run-if-empty
25+
uvx
26+
--from
27+
'git+https://github.com/TurtleTech-ehf/snapper.git@bcd3458e27e4156ce4e0a0b55a227400328fb3b1'
28+
snapper --max-width 0 --check
29+

‎.snapperrc.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These files contain markup constructs that Snapper main does not yet preserve.
2+
ignore = [
3+
"docs/source/commands.rst",
4+
]
5+

‎CHANGELOG.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Changelog
66
2026.09.08
77
----------
88

9-
- Check that Gatekeeper accepts the signed and notarized macOS binaries during
10-
the release, and remove the quarantine workaround from the install docs.
9+
- Check that Gatekeeper accepts the signed and notarized macOS binaries during the release, and remove the quarantine workaround from the install docs.
1110

1211
2026.08.30.5
1312
------------

‎docs/source/unreleased.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Unreleased changes
22
==================
33

4-
Changes that have landed on the main branch but are not yet part of a
5-
tagged release. These entries are assembled into the
4+
Changes that have landed on the main branch but are not yet part of a tagged release.
5+
These entries are assembled into the
66
:doc:`changelog` when the next release is published.
77

88
.. towncrier-draft-entries::

0 commit comments

Comments
 (0)