Python has several linters that you can use to help you find errors in your code or warnings about style. For example, one of the most thorough linters is Pylint. Flake8 is described as a tool for style guide enforcement. It is also a wrapper around PyFlakes, pycodestyle and Ned Batchelder’s McCabe script. You can […]
Code profiling is an attempt to find bottlenecks in your code. Profiling is supposed to find what parts of your code take the longest. Once you know that, then you can look at those pieces of your code and try to find ways to optimize it. Python comes with three profilers built in: cProfile, profile […]
PyChecker is a cool tool for checking Python scripts for bugs. It works with Python 2.0 - 2.7. In this article, we will write some crappy code to see what PyChecker can pick up on. Then we'll improve the code according to what we find until the code checks out. According to PyChecker's website, it […]