DEV Community

John Mitchell
John Mitchell

Posted on

Fast Development: Lint

how do you make changes to your Python code, then get feedback on which next action to take?

My fastest "inner loop" of feedback, besides Vscode, is a Linter.

Ruff is incredibly fast and does 80% of what I want -- that's my go-to for finding bugs for me to fix.

The next layer is pylint -E that is, scan code for a variable used before it's defined -- which is a guaranteed crash. This isn't as fast as Pyflakes or Ruff, but is super valuable.

Our friend Itamar at PythonSpeed.com has a great article on this, and a simple way to get started without boiling the ocean:

Top comments (0)