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: _config.CommandsOptions = common_command_options.copy() module-attribute ¤

Default command-line options for actors.

frequenz.repo.config.nox.default.actor_config: _config.Config = common_config.copy() module-attribute ¤

Default configuration for actors.

frequenz.repo.config.nox.default.api_command_options: _config.CommandsOptions = common_command_options.copy() module-attribute ¤

Default command-line options for APIs.

frequenz.repo.config.nox.default.api_config: _config.Config = common_config.copy() module-attribute ¤

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: _config.CommandsOptions = common_command_options.copy() module-attribute ¤

Default command-line options for applications.

frequenz.repo.config.nox.default.app_config: _config.Config = common_config.copy() module-attribute ¤

Default configuration for applications.

frequenz.repo.config.nox.default.common_command_options: _config.CommandsOptions = _config.CommandsOptions(black=['--check'], flake8=[], isort=['--diff', '--check'], mypy=[], pytest=['-W=all', '-vv']) module-attribute ¤

Default command-line options for all types of repositories.

frequenz.repo.config.nox.default.common_config = _config.Config(opts=common_command_options.copy(), sessions=['formatting', 'flake8', 'mypy', 'pylint', 'pytest_min', 'pytest_max'], source_paths=['src'], extra_paths=['benchmarks', 'docs', 'examples', 'noxfile.py', 'tests']) module-attribute ¤

Default configuration for all types of repositories.

frequenz.repo.config.nox.default.lib_command_options: _config.CommandsOptions = common_command_options.copy() module-attribute ¤

Default command-line options for libraries.

frequenz.repo.config.nox.default.lib_config: _config.Config = common_config.copy() module-attribute ¤

Default configuration for libraries.

frequenz.repo.config.nox.default.model_command_options: _config.CommandsOptions = common_command_options.copy() module-attribute ¤

Default command-line options for models.

frequenz.repo.config.nox.default.model_config: _config.Config = common_config.copy() module-attribute ¤

Default configuration for models.