Example #1
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *flake8_rules(),
            QueryRule(LintResults, (Flake8Request,)),
        ]
    )
Example #2
0
 def rules(cls):
   return (
     *super().rules(),
     *flake8_rules(),
     *download_pex_bin.rules(),
     *pex.rules(),
     *python_native_code.rules(),
     *subprocess_environment.rules(),
     RootRule(Flake8Target),
   )
Example #3
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *flake8_rules(),
            *source_files.rules(),
            *config_files.rules(),
            QueryRule(LintResults, [Flake8Request]),
        ],
        target_types=[PythonLibrary],
    )
Example #4
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *flake8_rules(),
            *flake8_subsystem_rules(),
            *source_files.rules(),
            *config_files.rules(),
            *target_types_rules.rules(),
            QueryRule(LintResults, [Flake8Request]),
        ],
        target_types=[PythonSourcesGeneratorTarget],
    )
Example #5
0
 def rules(cls):
     return (
         *super().rules(),
         *flake8_rules(),
         *download_pex_bin.rules(),
         *pex.rules(),
         *python_native_code.rules(),
         *subprocess_environment.rules(),
         RootRule(CreatePex),
         RootRule(Flake8),
         RootRule(Flake8Target),
         RootRule(PythonSetup),
         RootRule(PythonNativeCode),
         RootRule(SubprocessEnvironment),
     )
Example #6
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8FieldSets))
Example #7
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8Request))
Example #8
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(),
             RootRule(Flake8Configurations))
Example #9
0
 def rules(cls):
     return (
         *super().rules(),
         *flake8_rules(),
         QueryRule(LintResults, (Flake8Request, OptionsBootstrapper)),
     )
Example #10
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8Linter))
Example #11
0
 def rules(cls):
   return (*super().rules(), *flake8_rules(), RootRule(Flake8Target))