Skip to content

Commit d3790e1

Browse files
committed
Fix Python 3.12-only f-string syntax, compile-check 3.9 floor in CI
1 parent 878d639 commit d3790e1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13+
- uses: astral-sh/setup-uv@v7
14+
- run: uv run --python 3.9 --no-project python -m compileall -q packages/netaudio/src/netaudio
1315
- run: |
1416
tag="${GITHUB_REF_NAME#v}"
1517
version="$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"

packages/netaudio/src/netaudio/commands/provenance.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,10 @@ def _audit_single_bundle(bundle_path: Path) -> bool:
392392
"system": "SYSTEM",
393393
}
394394

395-
print(f"\n{("-" if app_settings.no_color else "─") * 72}")
395+
rule = ("-" if app_settings.no_color else "─") * 72
396+
print(f"\n{rule}")
396397
print("TIMELINE")
397-
print(f"{("-" if app_settings.no_color else "─") * 72}")
398+
print(rule)
398399

399400
all_events = []
400401

@@ -492,9 +493,10 @@ def _audit_single_bundle(bundle_path: Path) -> bool:
492493
if payload:
493494
print(_format_audit_packet(payload))
494495

495-
print(f"\n{("-" if app_settings.no_color else "─") * 72}")
496+
rule = ("-" if app_settings.no_color else "─") * 72
497+
print(f"\n{rule}")
496498
print("VERIFICATION SUMMARY")
497-
print(f"{("-" if app_settings.no_color else "─") * 72}")
499+
print(rule)
498500

499501
hypotheses = [m for m in markers if m.get("marker_type") == "hypothesis"]
500502
observations = [m for m in markers if m.get("marker_type") == "observation"]

0 commit comments

Comments
 (0)