Skip to content

Conversation

@mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Sep 23, 2025

Apply ruff's flake8-comprehensions (C4) rule, and also apply a few "preview" fixes from ruff 0.12.8. The statistics of checks before this PR are:

$ pixi run ruff check --statistics --preview
26	RUF031  [*] incorrectly-parenthesized-tuple-in-subscript
20	C408  	[ ] unnecessary-collection-call
 6	RUF039	[ ] unraw-re-pattern
 4	C409  	[ ] unnecessary-literal-within-tuple-call
 4	C416  	[ ] unnecessary-comprehension
 4	C419  	[ ] unnecessary-comprehension-in-call
 4	C420  	[*] unnecessary-dict-comprehension-for-iterable
 3	C414  	[ ] unnecessary-double-cast-or-process
 2	RUF027	[ ] missing-f-string-syntax
 1	C403  	[ ] unnecessary-list-comprehension-set
 1	E262  	[*] no-space-after-inline-comment
Found 75 errors.
[*] 31 fixable with the `--fix` option (38 hidden fixes can be enabled with the `--unsafe-fixes` option).

Fixes were mostly automated, with a few manual fixes.

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.

1 participant