How can I quickly clean up python fixable lint errors in my code? or What’s the best way to handle py

16 Replies, 1544 Views

For python fixable lint errors, I’ve got a weird but effective hack:

Use `codespell` to catch typos *and* `ruff` for linting.

Combined with `black`, it’s like having a full-time code janitor.

VS Code users: Enable "Editor: Format On Paste" in settings. Saves so much time.

And yeah, trailing whitespace is the linting equivalent of leaving the toilet seat up. Just fix it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)