Exemple #1
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(),
    ]
Exemple #2
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(),
    ]
Exemple #3
0
def rule_runner() -> RuleRunner:
    rule_runner = RuleRunner(
        target_types=[TerraformModule],
        rules=[
            *external_tool.rules(),
            *source_files.rules(),
            *pex_rules(),
            *dependency_inference.rules(),
            QueryRule(InferredDependencies, [InferTerraformModuleDependenciesRequest]),
            QueryRule(HydratedSources, [HydrateSourcesRequest]),
            QueryRule(ProcessResult, [ParseTerraformModuleSources]),
        ],
    )
    rule_runner.set_options(
        ["--backend-packages=pants.backend.experimental.terraform"],
        env_inherit={"PATH", "PYENV_ROOT", "HOME"},
    )
    return rule_runner