def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *stripped_source_files.rules(), *protobuf_dependency_inference.rules(), *target_types_rules(), QueryRule(ProtobufMapping, []), QueryRule(InferredDependencies, [InferProtobufDependencies]), ], target_types=[ProtobufLibrary], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *protobuf_rules(), *stripped_source_files.rules(), *target_types_rules(), QueryRule(HydratedSources, [HydrateSourcesRequest]), QueryRule(GeneratedSources, [GenerateJavaFromProtobufRequest]), ], target_types=[ProtobufSourcesGeneratorTarget], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *buf_rules(), *config_files.rules(), *external_tool.rules(), *stripped_source_files.rules(), *target_types_rules(), QueryRule(LintResults, [BufRequest]), ], target_types=[ProtobufSourcesGeneratorTarget], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *protobuf_rules(), *protobuf_subsystem_rules(), *additional_fields.rules(), *stripped_source_files.rules(), *target_types_rules(), QueryRule(HydratedSources, [HydrateSourcesRequest]), QueryRule(GeneratedSources, [GeneratePythonFromProtobufRequest]), ], target_types=[ProtobufSourcesGeneratorTarget], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *buf_rules(), *config_files.rules(), *external_tool.rules(), *source_files.rules(), *target_types_rules(), QueryRule(FmtResult, [BufFormatRequest]), QueryRule(SourceFiles, [SourceFilesRequest]), ], target_types=[ProtobufSourcesGeneratorTarget], )