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 use Flake8 as a way to lint your code and enforce PEP8 compliance.
Installing Flake8 is pretty easy when you use pip. If you’d like to install flake8 to your default Python location, you can do so with the following command:
python -m pip install flake8
Now that Flake8 is installed, let’s learn how to use it! Continue reading An Intro to Flake8