Skip to content

Commit 8dbaceb

Browse files
valentinstnclaude
andcommitted
fix: fix ruff lint errors in combined.py and drop Windows x86 target
- Replace ambiguous multiplication sign (×) with x in comment (RUF003) - Shorten over-length lines in _row() calls (E501) - Drop Windows x86 from release matrix: maturin cannot find a 32-bit Python interpreter when setup-python installs x64 only Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1862dcf commit 8dbaceb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
contents: read
3737
strategy:
3838
matrix:
39-
target: [x64, x86]
39+
target: [x64]
4040
steps:
4141
- uses: actions/checkout@v4
4242
- uses: actions/setup-python@v5

examples/combined.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# ── table shown in --help ──────────────────────────────────────────────────
1717
# Col1 visible width = 16, Col2 visible width = 22
18-
# Border = ┌/├/└ + 18×─ + ┬/┼/┴ + 24×─ + ┐/┤/┘ (total 45 chars)
18+
# Border = ┌/├/└ + 18x─ + ┬/┼/┴ + 24x─ + ┐/┤/┘ (total 45 chars)
1919
_H = "┌" + "─" * 18 + "┬" + "─" * 24 + "┐"
2020
_M = "├" + "─" * 18 + "┼" + "─" * 24 + "┤"
2121
_F = "└" + "─" * 18 + "┴" + "─" * 24 + "┘"
@@ -29,10 +29,10 @@ def _row(c1: str, c1_vis: int, c2: str, c2_vis: int) -> str:
2929
_MARKUP_TABLE = turboterm.apply_styles(
3030
"\nSupported markup tags:\n"
3131
+ _H + "\n"
32-
+ _row("Tag", 3, "Renders as", 10) + "\n"
32+
+ _row("Tag", 3, "Renders as", 10) + "\n"
3333
+ _M + "\n"
34-
+ _row("[b]bold[/b]", 4, "[b]bold text[/b]", 9) + "\n"
35-
+ _row("[u]underline[/u]", 9, "[u]underlined text[/u]", 15) + "\n"
34+
+ _row("[b]bold[/b]", 4, "[b]bold text[/b]", 9) + "\n"
35+
+ _row("[u]underline[/u]", 9, "[u]underlined text[/u]", 15) + "\n"
3636
+ _row("[red]color[/red]", 5, "[red]red foreground[/red]", 14) + "\n"
3737
+ _row("[bold red]combined[/bold red]", 8, "[bold red]bold + colored[/bold red]", 14) + "\n"
3838
+ _F

0 commit comments

Comments
 (0)