Skip to content

Enforce semantic line breaks with Snapper #1

Enforce semantic line breaks with Snapper

Enforce semantic line breaks with Snapper #1

name: Semantic line breaks
on:
pull_request:
push:
branches:
- main
permissions: {}
jobs:
semantic-line-breaks:
name: Snapper
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Check semantic line breaks
run: >-
git ls-files -z -- '*.md' '*.rst' ':(exclude)vendored/**'
| xargs -0 --no-run-if-empty
uvx
--from
'git+https://github.com/TurtleTech-ehf/snapper.git@bcd3458e27e4156ce4e0a0b55a227400328fb3b1'
snapper --max-width 0 --check