O'Reilly logo

Software Architecture with Python by Anand Balachandran Pillai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Metrics – tools for static analysis

Static code analysis tools can provide a rich summary of information on the static properties of your code, which can provide insights into aspects such as complexity and modifiability/readability of the code.

Python has a lot of third-party tool support, which helps in measuring the static aspects of Python code such as these:

  • Conformance to coding standards such as PEP-8
  • Code complexity metrics such as the McCabe metric
  • Errors in code such as syntax errors, indentation issues, missing imports, variable overwrites, and others
  • Logic issues in code
  • Code smells

The following are some of the most popular tools in the Python ecosystem that can perform such static analysis:

  • Pylint: Pylint is a static checker for Python code, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required