Exemple #1
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *flake8_rules(),
            QueryRule(LintResults, (Flake8Request,)),
        ]
    )
Exemple #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),
   )
Exemple #3
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *flake8_rules(),
            *source_files.rules(),
            *config_files.rules(),
            QueryRule(LintResults, [Flake8Request]),
        ],
        target_types=[PythonLibrary],
    )
Exemple #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],
    )
Exemple #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),
     )
Exemple #6
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8FieldSets))
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8Request))
Exemple #8
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(),
             RootRule(Flake8Configurations))
 def rules(cls):
     return (
         *super().rules(),
         *flake8_rules(),
         QueryRule(LintResults, (Flake8Request, OptionsBootstrapper)),
     )
Exemple #10
0
 def rules(cls):
     return (*super().rules(), *flake8_rules(), RootRule(Flake8Linter))
Exemple #11
0
 def rules(cls):
   return (*super().rules(), *flake8_rules(), RootRule(Flake8Target))