Skip to content

Commit 4b8b6fe

Browse files
Replace flynt with ruff FLY rules and bump pre-commit hooks (#3169)
## Summary - Remove the `flynt` pre-commit hook — ruff's `FLY002` rule (plus existing `UP031`/`UP032`) covers the same f-string conversions - Bump hook versions: `pre-commit-hooks` v4.4.0→v6.0.0, `Lucas-C` v1.5.1→v1.5.6, `ruff` v0.4.1→v0.15.1 - Bump `minimum_pre_commit_version` to 3.2.0 (required by `pre-commit-hooks` v6) - Add `FLY` to ruff lint select; add `UP045` to ignore list (same Talon runtime issue as `UP007` — see talonvoice/talon#634, tracked in #2151) - Apply ruff autofixes: `SIM905` in `default_vocabulary.py`, `C420` in `destinations.py` Closes #2308, closes #1885 ## Test plan - [x] `ruff check` passes clean - [x] `ruff format --check` passes clean - [x] `pnpm run compile` passes - [x] Pre-commit CI passes --------- Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
1 parent 8bd2755 commit 4b8b6fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/cheatsheet/sections/destinations.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def get_destinations() -> list[ListItemDescriptor]:
55
insertion_modes = {
6-
**{p: "to" for p in get_raw_list("insertion_mode_to")},
6+
**dict.fromkeys(get_raw_list("insertion_mode_to"), "to"),
77
**get_raw_list("insertion_mode_before_after"),
88
}
99

0 commit comments

Comments
 (0)