Closed edbennett closed 5 months ago
Done. I don't get any error anymore when ruff check is ran.
One more thing, sorry: can you please add the configuration block for this to pyproject.toml
? This will provide a starting point for further tidying later.
May I ask what should I add?
Oops, I was planning to include that in the previous message, but got side-tracked, rewrote the message, and forgot it.
The tool.ruff.lint
block from the ruff README
In addition to autoformatting (see #25),
ruff
can also check for more increasingly pedantic things that it can't automatically fix. I wouldn't suggest enabling everything, but would suggest we discuss what categories of warning are a good starting point.For example, I would definitely want to try and get rid of any lines including
import *
, and more broadly any imports that aren't used.