Static Analyzers in Python
Static analyzers are tools that help you check your code without really running your code. The most basic form of static analyzers is the syntax highlighters in your favorite editors. If you need to compile your code (say, in C++), your compiler, such as LLVM, may also provide some static analyzer functions to warn you about potential issues (e.g., mistaken assignment “=
” for equality “==
” in C++). In Python, we have some tools to identify potential errors or point out violations of coding standards.
After finishing this tutorial, you will learn some of these tools. Specifically,
- What can the tools Pylint, Flake8, and mypy do?
- What are coding style violations?
- How can we use type hints to help analyzers