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

16 Replies, 1546 Views

Honestly, `black` + `flake8` is my holy grail for python fixable lint errors.

But here’s a pro tip: Use `pyproject.toml` to configure them together.

Set `black`’s line length to match `flake8`, and you’ll avoid so many conflicts.

For VS Code, install the `Python` and `Pylance` extensions—they highlight issues *as you type*.

And yeah, trailing whitespace is a weird hill for linters to die on, but ¯\_(ツ)_/¯

Messages In This Thread



Users browsing this thread: 1 Guest(s)