Testing suite

The kallisto project uses noxarrow-up-right as an automated unit test suite, which is therefore an additional dependency.

Default nox session

The default session includes: linting (lint), type checks (mypy, pytype), and unit tests (tests).

> nox

When everything runs smoothly through, you are ready to go! After one successful nox run, we can reuse the created virtual environment via the -r flag.

> nox -r
circle-exclamation

Different unit test sessions are implemented (check the noxfile.pyarrow-up-right). They can be called separately via the run session -rs flag.

Tests

Run all unit tests that are defined in the /testsarrow-up-right directory.

> nox -rs tests

Lint

kallisto uses the flake8arrow-up-right linter (check the .flake8arrow-up-right config file).

> nox -rs lint

Black

kallisto uses the blackarrow-up-right code formatter.

Safety

kallisto checks the security of dependencies via safetyarrow-up-right.

Mypy

kallisto checks for static types via mypyarrow-up-right (check the mypy.iniarrow-up-right config file).

Pytype

kallisto furthermore uses pytypearrow-up-right for type checks.

Coverage

Unit test coveragearrow-up-right can be checked as well.

Last updated