Esempio n. 1
0
def rules():
    return [
        setup,
        docformatter_fmt,
        docformatter_lint,
        SubsystemRule(Docformatter),
        UnionRule(PythonFmtRequest, DocformatterRequest),
        UnionRule(LintRequest, DocformatterRequest),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Esempio n. 2
0
def rules():
    return [
        setup,
        black_fmt,
        black_lint,
        subsystem_rule(Black),
        UnionRule(PythonFmtConfigurations, BlackConfigurations),
        UnionRule(LinterConfigurations, BlackConfigurations),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Esempio n. 3
0
 def rules(cls):
     return (
         *super().rules(),
         *repl_rules(),
         *python_repl.rules(),
         *pex.rules(),
         *download_pex_bin.rules(),
         *archive.rules(),
         *external_tool.rules(),
         *importable_python_sources.rules(),
         *pex_from_targets.rules(),
         *python_native_code.rules(),
         *strip_source_roots.rules(),
         *subprocess_environment.rules(),
         RootRule(PythonRepl),
     )
Esempio n. 4
0
def rules():
    return [
        # goals
        *binary.rules(),
        *fmt.rules(),
        *lint.rules(),
        *repl.rules(),
        *run.rules(),
        *test.rules(),
        # util_rules
        *determine_source_files.rules(),
        *distdir.rules(),
        *filter_empty_sources.rules(),
        *strip_source_roots.rules(),
        *archive.rules(),
        *external_tool.rules(),
    ]
Esempio n. 5
0
 def rules(cls):
     return (
         *super().rules(),
         create_coverage_config,
         *pytest_runner.rules(),
         *download_pex_bin.rules(),
         *determine_source_files.rules(),
         *importable_python_sources.rules(),
         *pex.rules(),
         *pex_from_targets.rules(),
         *python_native_code.rules(),
         *strip_source_roots.rules(),
         *subprocess_environment.rules(),
         subsystem_rule(TestOptions),
         RootRule(CoverageConfigRequest),
         RootRule(PythonTestConfiguration),
     )