Read the original article on my blog
In this third installment of the Hypermodern Python series, I’m going to discuss how to add linting, code formatting, and static analysis to your project.¹ Previously, we discussed Automated Testing. (If you start reading here, you can also download the code for the previous chapter.)
Here are the topics covered in this chapter on Linting in Python:
- Linting with Flake8
- Code formatting with Black
- Checking imports with flake8-import-order
- Finding more bugs with flake8-bugbear
- Identifying security issues with Bandit
- Finding security vulnerabilities in dependencies with Safety
- Managing dependencies in Nox sessions with Poetry
- Managing Git hooks with pre-commit
Here is a full list of the articles in this series: