Пример #1
0
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],
    )
Пример #2
0
def rules():
    return (*mypy_rules.rules(), *skip_field.rules(), *subsystem.rules())