Commit 2b23911
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 3522bba commit 2b23911
4 files changed
Lines changed: 9 additions & 11 deletions
File tree
- cursorless-talon-dev/src
- cursorless-talon/src/cheatsheet/sections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 74 | | |
79 | | - | |
| 75 | + | |
80 | 76 | | |
81 | 77 | | |
82 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments