Skip to content

Commit f876887

Browse files
committed
Run 'ruff format' in CI
1 parent bcbdee2 commit f876887

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Lint
3131
run: |
3232
ruff check --output-format=github
33+
ruff format --diff
3334
- name: Typing
3435
run: |
3536
python -m mypy

src/vesta/chars.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ def encode(s: str) -> Row:
113113
out.append(int(s[i + 1 : i + 3]))
114114
skip_to = i + 4
115115
else:
116-
raise ValueError(f"{i+1}: missing }} at index {i+2} or {i+3}")
116+
raise ValueError(f"{i + 1}: missing }} at index {i + 2} or {i + 3}")
117117
if out[-1] not in CHARCODES:
118-
raise ValueError(f"{i+2}: unsupported character code: {out[-1]}")
118+
raise ValueError(f"{i + 2}: unsupported character code: {out[-1]}")
119119
else:
120120
try:
121121
out.append(CHARMAP[c])
122122
except KeyError:
123-
raise ValueError(f"{i+1}: unsupported character: {c}")
123+
raise ValueError(f"{i + 1}: unsupported character: {c}")
124124

125125
return out
126126

0 commit comments

Comments
 (0)