def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *subsystem.rules(), *skip_field.rules(), *config_files.rules(), *python_sources.rules(), QueryRule(MyPyConfigFile, []), QueryRule(MyPyFirstPartyPlugins, []), QueryRule(PythonLockfileRequest, [MyPyLockfileSentinel]), ], target_types=[PythonLibrary, PythonRequirementLibrary, GenericTarget], )
def rules(): return (*mypy_rules.rules(), *skip_field.rules(), *subsystem.rules())