def rules(): return [ # project_info *cloc.rules(), *filedeps.rules(), *list_backends.rules(), *list_roots.rules(), *list_target_types.rules(), *list_targets.rules(), *list_targets_old.rules(), # goals *binary.rules(), *fmt.rules(), *lint.rules(), *repl.rules(), *run.rules(), *test.rules(), # util_rules *determine_source_files.rules(), *distdir.rules(), *filter_empty_sources.rules(), *strip_source_roots.rules(), # other *target_rules(), ]
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ create_coverage_config, *pytest_runner.rules(), *pex_from_targets.rules(), *dependency_inference_rules.rules(), # For conftest detection. *distdir.rules(), *binary.rules(), *package_pex_binary.rules(), get_filtered_environment, QueryRule(TestResult, (PythonTestFieldSet,)), QueryRule(TestDebugRequest, (PythonTestFieldSet,)), ], target_types=[PexBinary, PythonLibrary, PythonTests, PythonRequirementLibrary], )
def rules(): return [ # goals *binary.rules(), *fmt.rules(), *lint.rules(), *repl.rules(), *run.rules(), *test.rules(), # util_rules *determine_source_files.rules(), *distdir.rules(), *filter_empty_sources.rules(), *strip_source_roots.rules(), *archive.rules(), *external_tool.rules(), ]
def rules(): return [ # goals *binary.rules(), *fmt.rules(), *lint.rules(), *repl.rules(), *run.rules(), *test.rules(), *typecheck.rules(), # util_rules *distdir.rules(), *filter_empty_sources.rules(), *pants_bin.rules(), *source_files.rules(), *stripped_source_files.rules(), *archive.rules(), *external_tool.rules(), *source_root.rules(), ]