Skip to content

๐Ÿ” Code Linting and Formatting

Precommit

In order to keep the code clean, consistent and free of bad python practices, more than Over 10 pre-commit hooks are enabled !

Complete list of all enabled rules is available in the .pre-commit-config.yaml file.

โš™๏ธ Setup

Info

Before linting, you must follow the installation steps.

Then, run the following command

# Lint
pre-commit run --all-files

When setting up local linting for development you can also run the following once:

# Install the pre-commit hook
pre-commit install

# Or equivalently
make init || make init-dev

๐Ÿฅ‡ Project quality scanner

Multiple tools are set up to maintain the best code quality and to prevent vulnerabilities:

SonarQube

SonarQube summary is available here.

Coverage Duplicated Lines (%) Quality Gate Status

Technical Debt Vulnerabilities Code Smells

Reliability Rating Security Rating Bugs