Skip to content

Python

Important

For testing details, see the tests documentation.

As the project's core language, Python undergoes the most extensive linting.

Checks and fixes

The following tools are used, in order:

Adjustments

You can configure most of the settings in pyproject.toml (see Configuration), for example:

  • Lower docstring coverage threshold: Adjust fail-under in [tool.interrogate].
  • Handle false positives in FawltyDeps: Add dependencies to ignore_undeclared, ignore_undefined or ignore_unused under [tool.fawltydeps] (ensure correctness before ignoring).

Code sources

  • pyproject.toml
  • .github/workflows/python*.yml