Pylint - Python static code analysis
2019-06-04, 11:30–11:55, Hall 3

Pylint is a Widely used and scalable Python static code analysis tool. In this lecture we will learn how to configure, extend and run it asw part of your CI.


Pylint

Pylint is a Widely used and scalable Python static code analysis tool which looks for programming errors, helps enforcing a coding standard, and offers simple refactoring suggestions.

Background

Pylint is highly configurable and has many parameters that allows you to match your linter to your exact coding standards.
It's also highly extendable and allows you to define your own special checkers (Code analyzers).
Pylint could be run as part of your CI to enforce quality standards.

Lecture

Agenda:
1. Pylint - What is it and how it works.
2. AST - Python abstract syntax tree - What is it and how we use it for our checkers.
3. Pylint Configuration - How we configure Pylint for our own use cases.
4. Pylint Checkers - How we create our own static code analyzers:
- Create Raw checkers, which analyse each module as a raw file stream.
- Create Token checkers, which analyse a file using the list of tokens that represent the source code in the file.
- Create AST checkers, which work on an AST representation of the module.
5. How to integrate Pylint in your CI.