brohrer ,
@brohrer@recsys.social avatar

I’m late to the game but ruff is a super slick replacement for flake8 and black.

https://github.com/astral-sh/ruff

jesper ,
@jesper@tech.lgbt avatar

@brohrer I'm convincing my people slowly.

It's super-fast!

And it implements a lot of the reasonable extensions anyways. So it's just really convenient to use!

lavergnetho ,
@lavergnetho@fediscience.org avatar

@jesper @brohrer Would you also recommend it for people with no/little experience with linters and code formatters? Is ruff good for new users as well?

jesper ,
@jesper@tech.lgbt avatar

@lavergnetho @brohrer absolutely. Most of my colleagues are Scientists. So I set up pre-commit hooks that run ruff on every commit.

You can run ruff from the command line with a single command.

Pretty "batteries included" if you ask me.

lavergnetho ,
@lavergnetho@fediscience.org avatar

@jesper @brohrer Thanks. Pre-commit hooks is what we'll need. I also read that editors like VSCode can auto-correct or flag wrongly-formatted code before it is even committed.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines