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

16 Replies, 1515 Views

Yo, python fixable lint errors are the worst.

I’ve been using `pylint` with `--fix` flag lately—it’s not perfect, but it catches stuff others miss.

Also, `vscode-python` has a "Source Action" quick fix thingy. Right-click the squiggly line and let it handle the easy stuff.

Pre-commit hooks are clutch, but if you’re lazy (like me), just run `black .` before pushing.

Trailing whitespace? Just… don’t. 😅

Messages In This Thread



Users browsing this thread: 1 Guest(s)