-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency filedev-automation
Description
Another major version of ruff dropped https://astral.sh/blog/ruff-v0.15.0
Most newly stabilized linting rules have auto-fixes, and I personally think they are all clear improvements. Since we are almost a month away from an auto-upgrade now, I think I'll go with sweeping PRs instead of subpackage targetted ones for a change.
Summary:
❯ ruff check astropy --statistics
72 RUF061 [ ] legacy-form-pytest-raises
6 FURB110 [*] if-exp-instead-of-or-operator
6 PLW0108 [ ] unnecessary-lambda
2 SIM910 [*] dict-get-with-none-default
1 PLC0207 [*] missing-maxsplit-arg
Found 87 errors.
[*] 9 fixable with the `--fix` option (76 hidden fixes can be enabled with the `--unsafe-fixes` option)
Hopefully there's more than enough time to converge on them. I'll link related PRs here.
- TST: fixes for
RUF061(legacy-form-pytest-raises) #19262 - TST: autofixes for
FURB110(if-exp-instead-of-or-operator) #19263 - TST: autofixes for
PLW0108(unnecessary-lambda) #19264 - TST: autofixes for
SIM910(dict-get-with-none-default) #19265 - TST: autofixes for
PLC0207(missing-maxsplit-arg) #19266 - STY: reformat lambda expressions with ruff 0.15 #19271
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency filedev-automation