Exemplo n.º 1
0
def rules():
    return [
        create_pex,
        two_step_create_pex,
        RootRule(PexRequest),
        RootRule(TwoStepPexRequest),
        subsystem_rule(PythonSetup),
        subsystem_rule(PythonRepos),
    ]
Exemplo n.º 2
0
def rules():
    return [
        run_python_test,
        debug_python_test,
        setup_pytest_for_target,
        UnionRule(TestTarget, PythonTestsAdaptorWithOrigin),
        subsystem_rule(PyTest),
        subsystem_rule(PythonSetup),
    ]
Exemplo n.º 3
0
def rules():
    return [
        run_python_test,
        debug_python_test,
        setup_pytest_for_target,
        UnionRule(TestRunner, PytestRunner),
        subsystem_rule(PyTest),
        subsystem_rule(PythonSetup),
    ]
Exemplo n.º 4
0
def rules():
    return [
        run_python_test,
        debug_python_test,
        setup_pytest_for_target,
        UnionRule(TestConfiguration, PythonTestConfiguration),
        subsystem_rule(PyTest),
        subsystem_rule(PythonSetup),
    ]
Exemplo n.º 5
0
def rules():
    return [
        strip_source_roots_from_snapshot,
        strip_source_roots_from_target,
        subsystem_rule(SourceRootConfig),
        RootRule(StripTargetRequest),
        RootRule(StripSnapshotRequest),
    ]
Exemplo n.º 6
0
def create_options_parsing_rules():
    return [
        scope_options,
        parse_options,
        subsystem_rule(GlobalOptions),
        RootRule(Scope),
        RootRule(OptionsBootstrapper),
    ]
Exemplo n.º 7
0
def rules():
    return [
        subsystem_rule(IPython),
        UnionRule(ReplImplementation, PythonRepl),
        UnionRule(ReplImplementation, IPythonRepl),
        run_python_repl,
        run_ipython_repl,
    ]
Exemplo n.º 8
0
def rules():
    return [
        strip_source_roots_from_snapshot,
        strip_source_roots_from_sources_field,
        subsystem_rule(SourceRootConfig),
        RootRule(StripSnapshotRequest),
        RootRule(StripSourcesFieldRequest),
        *target_rules(),
    ]
Exemplo n.º 9
0
def rules():
    return [
        scope_options,
        parse_options,
        subsystem_rule(GlobalOptions),
        log_level,
        RootRule(Scope),
        RootRule(OptionsBootstrapper),
    ]
Exemplo n.º 10
0
def rules():
    return [
        setup_isort,
        create_isort_request,
        fmt,
        lint,
        subsystem_rule(Isort),
        UnionRule(PythonFormatTarget, IsortTarget),
        UnionRule(PythonLintTarget, IsortTarget),
    ]
Exemplo n.º 11
0
def rules():
    return [
        lint,
        subsystem_rule(Bandit),
        UnionRule(PythonLintTarget, BanditTarget),
        *download_pex_bin.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 12
0
def rules():
    return [
        setup_black,
        create_black_request,
        fmt,
        lint,
        subsystem_rule(Black),
        UnionRule(PythonFormatTarget, BlackTarget),
        UnionRule(PythonLintTarget, BlackTarget),
    ]
Exemplo n.º 13
0
def rules():
    return [
        create_coverage_config,
        generate_coverage_report,
        merge_coverage_data,
        setup_coverage,
        subsystem_rule(PytestCoverage),
        UnionRule(CoverageDataCollection, PytestCoverageDataCollection),
        RootRule(CoverageConfigRequest),
    ]
Exemplo n.º 14
0
def rules():
    return [
        RootRule(PytestCoverageDataBatch),
        RootRule(CoveragercRequest),
        construct_coverage_config,
        generate_coverage_report,
        merge_coverage_data,
        subsystem_rule(PytestCoverage),
        setup_coverage,
        UnionRule(CoverageDataBatch, PytestCoverageDataBatch),
    ]
Exemplo n.º 15
0
def rules():
    return [
        lint,
        subsystem_rule(Flake8),
        UnionRule(Linter, Flake8Linter),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 16
0
def rules():
    return [
        bandit_lint,
        subsystem_rule(Bandit),
        UnionRule(LinterConfigurations, BanditConfigurations),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 17
0
def rules():
    return [
        pylint_lint,
        subsystem_rule(Pylint),
        UnionRule(Linter, PylintLinter),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *importable_python_sources.rules(),
        *strip_source_roots.rules(),
        *python_native_code.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 18
0
def rules():
    return [
        run_setup_pys,
        run_setup_py,
        generate_chroot,
        get_sources,
        get_requirements,
        get_ancestor_init_py,
        get_owned_dependencies,
        get_exporting_owner,
        setup_setuptools,
        subsystem_rule(Setuptools),
    ]
Exemplo n.º 19
0
def rules():
    return [
        create_python_awslambda,
        setup_lambdex,
        UnionRule(AWSLambdaConfiguration, PythonAwsLambdaConfiguration),
        subsystem_rule(Lambdex),
        *download_pex_bin.rules(),
        *importable_python_sources.rules(),
        *pex.rules(),
        *pex_from_targets.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 20
0
def rules():
    return [
        setup_black,
        create_black_request,
        fmt,
        lint,
        subsystem_rule(Black),
        UnionRule(PythonFormatTarget, BlackTarget),
        UnionRule(PythonLintTarget, BlackTarget),
        *download_pex_bin.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 21
0
def rules():
    return [
        create_python_awslambda,
        setup_lambdex,
        UnionRule(AWSLambdaTarget, PythonAWSLambdaAdaptor),
        subsystem_rule(Lambdex),
        *download_pex_bin.rules(),
        *pex.rules(),
        *pex_from_target_closure.rules(),
        *prepare_chrooted_python_sources.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
 def rules(cls):
     return (
         *super().rules(),
         *python_test_runner.rules(),
         *download_pex_bin.rules(),
         *inject_init.rules(),
         *pex.rules(),
         *pex_from_target_closure.rules(),
         *prepare_chrooted_python_sources.rules(),
         *python_native_code.rules(),
         *strip_source_root.rules(),
         *subprocess_environment.rules(),
         subsystem_rule(TestOptions),
         RootRule(PythonTestsAdaptor),
     )
Exemplo n.º 23
0
def rules():
    return [
        setup,
        fmt,
        lint,
        subsystem_rule(Docformatter),
        UnionRule(PythonFormatter, DocformatterFormatter),
        UnionRule(Linter, DocformatterFormatter),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
Exemplo n.º 24
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(),
    ]
 def rules(cls):
     return (
         *super().rules(),
         *pytest_coverage.rules(),
         *pytest_runner.rules(),
         *download_pex_bin.rules(),
         *determine_source_files.rules(),
         *pex.rules(),
         *pex_from_target_closure.rules(),
         *prepare_chrooted_python_sources.rules(),
         *python_native_code.rules(),
         *strip_source_roots.rules(),
         *subprocess_environment.rules(),
         subsystem_rule(TestOptions),
         RootRule(PytestRunner),
     )
Exemplo n.º 26
0
 def rules(cls):
     return (
         *super().rules(),
         *pytest_coverage.rules(),
         *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(PythonTestConfiguration),
     )
Exemplo n.º 27
0
def rules():
    return [
        subsystem_rule(SubprocessEnvironment),
        create_subprocess_encoding_environment,
    ]
Exemplo n.º 28
0
def rules():
    return [
        generate_python_from_protobuf,
        UnionRule(GenerateSourcesRequest, GeneratePythonFromProtobufRequest),
        subsystem_rule(Protoc),
    ]
Exemplo n.º 29
0
def rules():
  return [
    validate,
    match_regexes_for_one_snapshot,
    subsystem_rule(SourceFileValidation),
  ]
Exemplo n.º 30
0
def rules():
    return [
        run_cloc,
        download_cloc_script,
        subsystem_rule(ClocBinary),
    ]