Skip to content

Commit cc482dd

Browse files
committed
ci: preserve generated patch whitespace
1 parent 1161d97 commit cc482dd

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

os/mkosi/scripts/build-sysbox.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ mkdir -p "$STAGE/var/lib/sysbox"
4242
printf 'sysbox:100000:65536\n' >> "$STAGE/etc/subuid"
4343
printf 'sysbox:100000:65536\n' >> "$STAGE/etc/subgid"
4444
find "$STAGE" -print0 | xargs -0r touch -h -d "@${SOURCE_DATE_EPOCH:?}"
45-

os/mkosi/tests/check-parity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env python3
22
# SPDX-License-Identifier: Apache-2.0
3+
"""Verify Yocto-visible functional parity in an assembled mkosi tree."""
4+
35
import glob
46
import json
57
import os

prek.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
repo = "https://github.com/pre-commit/pre-commit-hooks"
1212
rev = "v5.0.0"
1313
hooks = [
14-
{ id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^(os/yocto/|tools/(dev-stack\.sh|vm-runner/)|dstack/(dstack-util/tests/fixtures/key-provider-docker-compose\.yaml|gateway/src/main_service/snapshots/.*))' },
15-
{ id = "end-of-file-fixer", exclude = "^(os/yocto/|tools/(dev-stack\\.sh|vm-runner/))" },
14+
{ id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^(os/yocto/|os/mkosi/patches/|tools/(dev-stack\.sh|vm-runner/)|dstack/(dstack-util/tests/fixtures/key-provider-docker-compose\.yaml|gateway/src/main_service/snapshots/.*))' },
15+
{ id = "end-of-file-fixer", exclude = "^(os/yocto/|os/mkosi/patches/|tools/(dev-stack\\.sh|vm-runner/))" },
1616
{ id = "check-yaml", args = ["--allow-multiple-documents"], exclude = "dstack/gateway/templates/" },
1717
{ id = "check-toml" },
1818
{ id = "check-json" },
1919
{ id = "check-merge-conflict" },
2020
{ id = "check-added-large-files", args = ["--maxkb=500"] },
2121
{ id = "check-symlinks" },
22-
{ id = "mixed-line-ending", args = ["--fix=lf"], exclude = "^(os/yocto/|tools/(dev-stack\\.sh|vm-runner/))" },
22+
{ id = "mixed-line-ending", args = ["--fix=lf"], exclude = "^(os/yocto/|os/mkosi/patches/|tools/(dev-stack\\.sh|vm-runner/))" },
2323
]
2424

2525
# --- Rust: rustfmt ---

0 commit comments

Comments
 (0)