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 ¤
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 ¤
flake8(session: Session, install_deps: bool = True) -> None
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 ¤
formatting(
session: Session, install_deps: bool = True
) -> None
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 ¤
mypy(session: Session, install_deps: bool = True) -> None
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 ¤
pylint(session: Session, install_deps: bool = True) -> None
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 ¤
pytest_max(
session: Session, install_deps: bool = True
) -> None
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 ¤
pytest_min(
session: Session, install_deps: bool = True
) -> None
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:
|