A new ruff minor appears
Blog post: https://astral.sh/blog/ruff-v0.16.0
This one is special (to me): of the 316 rule violations we get by upgrading now, 305 are for too-many-positional-arguments, a "rule" I've been informally discussing and advising in reviews for years throughout many projects. Crucially, this rule cannot be blinding applied to existing public APIs (without breaking them), and doesn't have as much value for private APIs, but it is extremely precious for new code, so my suggestion is to add local noqa comments (trivially done with ruff itself, e.g. uvx [email protected] check astropy --select PLR0917 --add-noqa) rather than disabling the rule globally.
Other violations should be trivally fixable. I'll keep track of them here.
RUF068
ISC004
FURB192
RUF036
A new ruff minor appears
Blog post: https://astral.sh/blog/ruff-v0.16.0
This one is special (to me): of the 316 rule violations we get by upgrading now, 305 are for
too-many-positional-arguments, a "rule" I've been informally discussing and advising in reviews for years throughout many projects. Crucially, this rule cannot be blinding applied to existing public APIs (without breaking them), and doesn't have as much value for private APIs, but it is extremely precious for new code, so my suggestion is to add local noqa comments (trivially done with ruff itself, e.g.uvx [email protected] check astropy --select PLR0917 --add-noqa) rather than disabling the rule globally.Other violations should be trivally fixable. I'll keep track of them here.
RUF068
__all__#20114ISC004
ISC004violations (utils) #20115ISC004violations (timeseries) #20116ISC004violations (io.fits) #20117ISC004violations (io.registry) #20118ISC004violations (nddata) #20119FURB192
FURB192violations (time) #20120RUF036
RUF036violations (cosmology) #20121