tek,
@tek@freeradical.zone avatar

If you use Ruff in CI to check your Python code (and if not, what’s wrong with you, start ASAP!), there’s a breaking change in the new 0.1.0 version released yesterday. Change the --output= arg to --output-format and you’ll be back up and running.

The Ruff team did bump the minor version when they made the change. If you’re like me and hadn’t bothered pinning it because “they’ve had 293 releases so far, what’s the likelihood it’ll change?”, fix that too while you’re in there.

tek,
@tek@freeradical.zone avatar

Hey, and since you’re at it, do your ol’ pal Tek a favor and add --extend-select=S to Ruff’s command line to enable warnings about potentially insecure code, would you? The world thanks you!

clacke,

@tek Will check out Ruff, this is the first I hear of it.

tek,
@tek@freeradical.zone avatar

@clacke TL;DR you can replace much of the flake8 ecosystem with it, and it runs in milliseconds, not seconds. (There’s more to it than that, but that can get you started.)

clacke,

> An extremely fast Python linter, written in Rust.
[ . . . ]
> Near-parity with the built-in Flake8 rule set
> 🔌 Native re-implementations of dozens of Flake8 plugins, like flake8-bugbear
[ . . . ]
> Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.

Used by well-renowned projects like pandas and FastAPI.

pypi.org/project/ruff/

Yeah, this really does look like a no-brainer once you know about it.

@tek

@python

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines