project_config.commands.check module

project-config check command.

exception project_config.commands.check.ConditionalsFalseResult[source]

Bases: InterruptCheck

A conditional must skip a rule.

exception project_config.commands.check.InterruptCheck[source]

Bases: Exception

An action has reported an invalid context for a rule.

This exceptions prevents to continue executing subsecuents rules.

class project_config.commands.check.ProjectConfigChecker(config: Config, fix_mode: bool = False)[source]

Bases: object

Project configuration checker.

_check_files_absence(files: list[str] | dict[str, str | int], rule_index: int) None[source]
_check_files_existence(files: list[str], rule_index: int) None[source]
_process_conditionals_for_rule(conditionals: list[tuple[str, Any]], rule: Rule, rule_index: int) None[source]
_run_check() None[source]
run() None[source]

Run the checker.

project_config.commands.check.check(args: Namespace) None[source]

Checks that the styles configured for a project match.

Raises errors if reported.