4 ms·
>> [SyntaxError, IndentationError, TabError] > Well, doh :) Type system or unit tests won't catch that. Tooling, tooling, tooling. You need neither unit tests
by vog 10y ago
>> [SyntaxError, IndentationError, TabError]
> Well, doh :) Type system or unit tests won't catch that. Tooling, tooling, tooling.
You need neither unit tests or a type system to catch those. And you also don't need any tooling. The Python interpreter will throw these exceptions as soon as your program starts.
(Unless, of course, you rely on stuff like heavy dynamic importing at runtime, but that's really rare. I usually see this only for web servers in debug mode, where they auto-reload the app after a changed source file. But then my above comment applies: The faulty program crashes right away, you can't miss that.)