Skip to content

Replace flynt with ruff FLY rules and bump pre-commit hooks#3169

Open
phillco wants to merge 1 commit intomainfrom
replace-flynt-bump-precommit
Open

Replace flynt with ruff FLY rules and bump pre-commit hooks#3169
phillco wants to merge 1 commit intomainfrom
replace-flynt-bump-precommit

Conversation

@phillco
Copy link
Member

@phillco phillco commented Feb 14, 2026

Summary

Closes #2308, closes #1885

Test plan

  • ruff check passes clean
  • ruff format --check passes clean
  • pnpm run compile passes
  • Pre-commit CI passes

- Remove flynt hook; ruff's FLY002 + existing UP031/UP032 rules cover
  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 select, add UP045 to ignore (same Talon runtime
  issue as UP007; see talonvoice/talon#634)
- Apply ruff autofixes: SIM905 in default_vocabulary.py, C420 in
  destinations.py

Closes #2308, closes #1885
@phillco phillco requested a review from a team as a code owner February 14, 2026 18:52
# https://github.com/talonhub/community/blob/9acb6c9659bb0c9b794a7b7126d025603b4ed726/core/keys/keys.py#L10
initial_default_alphabet = "air bat cap drum each fine gust harp sit jury crunch look made near odd pit quench red sun trap urge vest whale plex yank zip".split()
initial_default_alphabet = [
"air",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was intentionally written in community with .split() to reduce the syntactic noise so those new to Python would be more comfortable, right? I'm wondering if we should exclude this rule

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea about the original intent in community, but the alphabet has been stable for so long that I think it's fine to do this change here in Cursorless without any problems with future updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch from flynt to ruff Bump pre-commit version

3 participants