This category assesses your project’s code quality by running several static analysis tools on your project. Static analysis tools analyse your code without actually running it, in an attempt to find potential bugs, refactoring opportunities and/or coding style violations.

The linter for this category will check whether your project is using the configured set of code quality linters. mllint supports (and by default requires) the following linters:

  • pylint
  • mypy
  • black
  • isort
  • bandit

For your project to be considered to be using a linter…

  • Either there is a configuration file for this linter in the project
  • Or the linter is a dependency of the project (preferably a dev dependency)

You can configure which linters mllint requires your project to use, using the following snippet of YAML in a .mllint.yml configuration file:

code-quality:
	linters:
		- pylint
		- mypy
		- black
		- isort
		- bandit

or TOML:

[code-quality]
  linters = ["pylint", "mypy", "black", "isort", "bandit"]

We recommend that you configure each of these linters as you see fit using their respective configuration options. Those will then automatically be picked up as mllint runs them.