Skip to content

default

frequenz.repo.config.nox.default ¤

Default nox configuration for different types of repositories.

This module provides the default configuration for the different types of repositories defined by frequenz.repo.config.RepositoryType.

The actor_config, api_config, app_config, lib_config, and model_config variables are the default configurations for libraries, APIs, actors and applications, respectively. The common_config variable is the default configuration for all types of repositories.

The actor_command_options, api_command_options, app_command_options, lib_command_options, and model_command_options variables are the default command-line options for the same types of repositories, and the common_command_options variable is the default command-line options for all types of repositories.

They can be modified before being passed to nox.configure() by using the CommandsOptions.copy() method.

Attributes¤

frequenz.repo.config.nox.default.actor_command_options module-attribute ¤

actor_command_options: CommandsOptions = copy()

Default command-line options for actors.

frequenz.repo.config.nox.default.actor_config module-attribute ¤

actor_config: Config = copy()

Default configuration for actors.

frequenz.repo.config.nox.default.api_command_options module-attribute ¤

api_command_options: CommandsOptions = copy()

Default command-line options for APIs.

frequenz.repo.config.nox.default.api_config module-attribute ¤

api_config: Config = copy()

Default configuration for APIs.

Same as common_config, but with an empty source_paths (as the sources are automatically generated, we don't want to test anything in there).

frequenz.repo.config.nox.default.app_command_options module-attribute ¤

app_command_options: CommandsOptions = copy()

Default command-line options for applications.

frequenz.repo.config.nox.default.app_config module-attribute ¤

app_config: Config = copy()

Default configuration for applications.

frequenz.repo.config.nox.default.common_command_options module-attribute ¤

common_command_options: CommandsOptions = CommandsOptions(
    black=["--check"],
    flake8=[],
    isort=["--diff", "--check"],
    mypy=[],
    pytest=["-W=all", "-vv"],
)

Default command-line options for all types of repositories.

frequenz.repo.config.nox.default.common_config module-attribute ¤

common_config = Config(
    opts=copy(),
    sessions=[
        "formatting",
        "flake8",
        "mypy",
        "pylint",
        "pytest_min",
        "pytest_max",
    ],
    source_paths=["src"],
    extra_paths=[
        "benchmarks",
        "docs",
        "examples",
        "noxfile.py",
        "tests",
    ],
)

Default configuration for all types of repositories.

frequenz.repo.config.nox.default.lib_command_options module-attribute ¤

lib_command_options: CommandsOptions = copy()

Default command-line options for libraries.

frequenz.repo.config.nox.default.lib_config module-attribute ¤

lib_config: Config = copy()

Default configuration for libraries.

frequenz.repo.config.nox.default.model_command_options module-attribute ¤

model_command_options: CommandsOptions = copy()

Default command-line options for models.

frequenz.repo.config.nox.default.model_config module-attribute ¤

model_config: Config = copy()

Default configuration for models.