Beispiel #1
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        target_types=[TerraformModuleTarget, TerraformModulesGeneratorTarget],
        rules=[
            *external_tool.rules(),
            *target_gen.rules(),
            QueryRule(_TargetParametrizations, [Address]),
        ],
    )
Beispiel #2
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        target_types=[TerraformModuleTarget, TerraformModulesGeneratorTarget],
        rules=[
            *external_tool.rules(),
            *target_gen.rules(),
            QueryRule(GeneratedTargets,
                      [GenerateTerraformModuleTargetsRequest]),
        ],
    )
Beispiel #3
0
def rules():
    return [
        *collect_rules(),
        *check.rules(),
        *dependency_inference.rules(),
        *tailor.rules(),
        *target_gen.rules(),
        *target_types_rules(),
        *tool.rules(),
        *style.rules(),
        *pex_rules(),
        *tffmt_rules(),
    ]
Beispiel #4
0
def rules():
    return [
        *collect_rules(),
        *dependency_inference.rules(),
        *tailor.rules(),
        *target_gen.rules(),
        *target_types_rules(),
        *tool.rules(),
        *fmt.rules(),
        *pex_rules(),
        *tffmt_rules(),
        *validate_rules(),
    ]
Beispiel #5
0
def rule_runner() -> RuleRunner:
    rule_runner = RuleRunner(
        target_types=[TerraformModule, TerraformModules],
        rules=[
            *external_tool.rules(),
            *source_files.rules(),
            *target_gen.rules(),
            QueryRule(GeneratedTargets,
                      [GenerateTerraformModuleTargetsRequest]),
        ],
    )
    rule_runner.set_options(
        ["--backend-packages=pants.backend.experimental.terraform"])
    return rule_runner