session
frequenz.repo.config.nox.session
¤
Predefined nox sessions.
This module defines the predefined nox sessions that are used by the default.
Functions¤
frequenz.repo.config.nox.session.ci_checks_max(session)
¤
Run all checks with max dependencies in a single session.
This is faster than running the checks separately, so it is suitable for CI.
This does NOT run pytest_min, so that needs to be run separately as well.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.flake8(session, install_deps=True)
¤
Check for common errors and in particular documentation format and style.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.formatting(session, install_deps=True)
¤
Check code formatting with black and isort.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.mypy(session, install_deps=True)
¤
Check type hints with mypy.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.pylint(session, install_deps=True)
¤
Check for code smells with pylint.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.pytest_max(session, install_deps=True)
¤
Test the code against max dependency versions with pytest.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|
Source code in frequenz/repo/config/nox/session.py
frequenz.repo.config.nox.session.pytest_min(session, install_deps=True)
¤
Test the code against min dependency versions with pytest.
PARAMETER | DESCRIPTION |
---|---|
session |
the nox session.
TYPE:
|
install_deps |
True if dependencies should be installed.
TYPE:
|