Invoke

The generated project is ready to run some useful tasks like formatting, linting, testing and more.

To do this we use pyinvoke to wrap up the required commands.

Execute inv[oke] –list to see the list of available commands.

$ poerty shell
$ inv[oke] --list
Available tasks:

  clean           Run all clean sub-tasks.
  clean-build     Clean up files from package building.
  clean-docs      Clean up files from documentation builds.
  clean-python    Clean up python file artifacts.
  clean-tests     Clean up files from testing.
  coverage        Create coverage report.
  docs            Build documentation.
  format          Format code.
  hooks           Run pre-commit hooks.
  install-hooks   Install pre-commit hooks.
  lint            Run all linting.
  mypy            Run mypy.
  ruff            Run ruff.
  security        Run security related checks.
  tests           Run tests.
  version         Bump version.