Skip to content

Ruff rules for pyupgrade#98

Open
cclauss wants to merge 1 commit into
CenterForOpenScience:mainfrom
cclauss:ruff-rules-for-pyupgrade
Open

Ruff rules for pyupgrade#98
cclauss wants to merge 1 commit into
CenterForOpenScience:mainfrom
cclauss:ruff-rules-for-pyupgrade

Conversation

@cclauss

@cclauss cclauss commented May 17, 2026

Copy link
Copy Markdown

https://docs.astral.sh/ruff/rules/#pyupgrade-up

% ruff check --select=UP --statistics

8	UP032	[*] f-string
2	UP008	[*] super-call-with-parameters
1	UP009	[*] utf8-encoding-declaration
1	UP028	[ ] yield-in-for-loop
1	UP031	[ ] printf-string-formatting
1	UP037	[*] quoted-annotation
Found 14 errors.
[*] 12 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).

% ruff check --select=UP --fix --unsafe-fixes

@cclauss
cclauss force-pushed the ruff-rules-for-pyupgrade branch 3 times, most recently from a73072d to 2b5a9e8 Compare May 17, 2026 04:18
@cclauss
cclauss force-pushed the ruff-rules-for-pyupgrade branch from 2b5a9e8 to a3a108e Compare May 21, 2026 08:56
@cclauss

cclauss commented May 21, 2026

Copy link
Copy Markdown
Author

Resolved git conflicts caused by:

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