def rule_runner() -> RuleRunner: return RuleRunner( rules=[ build_runtime_package_dependencies, create_or_update_coverage_config, *pytest_runner.rules(), *pytest_subsystem_rules(), *pex_from_targets.rules(), *dependency_inference_rules.rules(), *distdir.rules(), *config_files.rules(), *package_pex_binary.rules(), get_filtered_environment, *target_types_rules.rules(), *local_dists.rules(), *setup_py.rules(), *setuptools_rules(), QueryRule(TestResult, (PythonTestFieldSet, )), QueryRule(TestDebugRequest, (PythonTestFieldSet, )), ], target_types=[ PexBinary, PythonSourcesGeneratorTarget, PythonTestsGeneratorTarget, PythonTestUtilsGeneratorTarget, PythonRequirementTarget, PythonDistribution, ], objects={"python_artifact": PythonArtifact}, )
def rules(): return ( *coverage_py.rules(), *export.rules(), *lockfile.rules(), *tailor.rules(), *ancestor_files.rules(), *local_dists.rules(), *python_sources.rules(), *dependency_inference_rules.rules(), *pex.rules(), *pex_cli.rules(), *pex_environment.rules(), *pex_from_targets.rules(), *pytest_runner.rules(), *package_pex_binary.rules(), *python_native_code.rules(), *repl.rules(), *run_pex_binary.rules(), *target_types_rules.rules(), *setup_py.rules(), *setuptools.rules(), *ipython.rules(), *pytest.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 ( *coverage_py.rules(), *ancestor_files.rules(), *extract_pex.rules(), *python_sources.rules(), *dependency_inference_rules.rules(), *pex.rules(), *pex_cli.rules(), *pex_environment.rules(), *pex_from_targets.rules(), *pytest_runner.rules(), *package_pex_binary.rules(), *python_native_code.rules(), *repl.rules(), *run_pex_binary.rules(), *target_type_rules(), *setup_py.rules(), )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ build_runtime_package_dependencies, create_or_update_coverage_config, *pytest_runner.rules(), *pex_from_targets.rules(), *dependency_inference_rules.rules(), *distdir.rules(), *config_files.rules(), *package_pex_binary.rules(), get_filtered_environment, *target_types_rules.rules(), QueryRule(TestResult, (PythonTestFieldSet, )), QueryRule(TestDebugRequest, (PythonTestFieldSet, )), ], target_types=[ PexBinary, PythonLibrary, PythonTests, PythonRequirementLibrary ], )