コード例 #1
0
ファイル: rules.py プロジェクト: Spacerat/pants
def rules():
    return [
        *collect_rules(),
        UnionRule(LintRequest, Flake8Request),
        *determine_source_files.rules(),
        *pex.rules(),
        *strip_source_roots.rules(),
    ]
コード例 #2
0
 def rules(cls):
     return (
         *super().rules(),
         *pex.rules(),
         *external_tool.rules(),
         *archive.rules(),
         RootRule(PexRequest),
     )
コード例 #3
0
def rules():
    return [
        *collect_rules(),
        UnionRule(LintRequest, Flake8Request),
        *pex.rules(),
        *source_files.rules(),
        *stripped_source_files.rules(),
    ]
コード例 #4
0
ファイル: rules.py プロジェクト: jperkelens/pants
def rules():
    return [
        *collect_rules(),
        UnionRule(PythonFmtRequest, BlackRequest),
        UnionRule(LintRequest, BlackRequest),
        *pex.rules(),
        *source_files.rules(),
        *stripped_source_files.rules(),
    ]
コード例 #5
0
def rules():
    return [
        *collect_rules(),
        UnionRule(PythonFmtRequest, IsortRequest),
        UnionRule(LintRequest, IsortRequest),
        *determine_source_files.rules(),
        *pex.rules(),
        *strip_source_roots.rules(),
    ]
コード例 #6
0
def rules():
    return [
        *collect_rules(),
        UnionRule(AWSLambdaFieldSet, PythonAwsLambdaFieldSet),
        *python_sources.rules(),
        *pex.rules(),
        *pex_from_targets.rules(),
        *strip_source_roots.rules(),
    ]
コード例 #7
0
ファイル: rules.py プロジェクト: jperkelens/pants
def rules():
    return [
        *collect_rules(),
        UnionRule(LintRequest, PylintRequest),
        *source_files.rules(),
        *pex.rules(),
        *python_sources.rules(),
        *stripped_source_files.rules(),
    ]
コード例 #8
0
def rules():
    return (
        *download_pex_bin.rules(),
        *inject_init.rules(),
        *pex.rules(),
        *python_test_runner.rules(),
        *python_create_binary.rules(),
        *python_native_code.rules(),
        *subprocess_environment.rules(),
    )
コード例 #9
0
def rules():
    return [
        lint,
        subsystem_rule(Bandit),
        UnionRule(PythonLintTarget, BanditTarget),
        *download_pex_bin.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *subprocess_environment.rules(),
    ]
コード例 #10
0
 def rules(cls):
   return (
     *super().rules(),
     *black_rules(),
     *download_pex_bin.rules(),
     *pex.rules(),
     *python_native_code.rules(),
     *subprocess_environment.rules(),
     RootRule(BlackTarget),
   )
コード例 #11
0
 def rules(cls):
     return (
         *super().rules(),
         *pex.rules(),
         *external_tool.rules(),
         *archive.rules(),
         QueryRule(Pex, (PexRequest, OptionsBootstrapper)),
         QueryRule(Process, (PexProcess, OptionsBootstrapper)),
         QueryRule(ProcessResult, (Process, )),
     )
コード例 #12
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(),
    ]
コード例 #13
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(),
    ]
コード例 #14
0
ファイル: rules.py プロジェクト: pyranja/pants
def rules():
    return [
        flake8_lint,
        SubsystemRule(Flake8),
        UnionRule(LinterFieldSets, Flake8FieldSets),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
コード例 #15
0
ファイル: register.py プロジェクト: mcguigan/pants
def rules():
    return (
        *download_pex_bin.rules(),
        *inject_init.rules(),
        *prepare_chrooted_python_sources.rules(),
        *pex.rules(),
        *pex_from_target_closure.rules(),
        *python_test_runner.rules(),
        *python_create_binary.rules(),
        *python_native_code.rules(),
        *run_setup_py.rules(),
        *subprocess_environment.rules(),
    )
コード例 #16
0
ファイル: rules.py プロジェクト: LarryFinn/pants
def rules():
    return [
        pylint_lint,
        SubsystemRule(Pylint),
        UnionRule(LinterFieldSets, PylintFieldSets),
        *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(),
    ]
コード例 #17
0
ファイル: rules.py プロジェクト: briespoke/pants
def rules():
    return [
        flake8_lint,
        flake8_lint_partition,
        SubsystemRule(Flake8),
        UnionRule(LintRequest, Flake8Request),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
コード例 #18
0
 def rules(cls):
     return (
         *super().rules(),
         *repl.rules(),
         run_repl,
         *pex.rules(),
         *download_pex_bin.rules(),
         *pex_from_target_closure.rules(),
         *prepare_chrooted_python_sources.rules(),
         *python_native_code.rules(),
         *strip_source_roots.rules(),
         *subprocess_environment.rules(),
         RootRule(PythonRepl),
     )
コード例 #19
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(),
    ]
コード例 #20
0
 def rules(cls):
     return (
         *super().rules(),
         create_coverage_config,
         *pytest_runner.rules(),
         *determine_source_files.rules(),
         *python_sources.rules(),
         *pex.rules(),
         *pex_from_targets.rules(),
         *strip_source_roots.rules(),
         RootRule(PythonTestFieldSet),
         # For conftest detection.
         *dependency_inference_rules.rules(),
     )
コード例 #21
0
 def rules(cls):
     return (
         *super().rules(),
         *repl_rules(),
         *python_repl.rules(),
         *pex.rules(),
         *archive.rules(),
         *external_tool.rules(),
         *python_sources.rules(),
         *pex_from_targets.rules(),
         *strip_source_roots.rules(),
         *ancestor_files.rules(),
         RootRule(PythonRepl),
     )
コード例 #22
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(),
    ]
コード例 #23
0
 def rules(cls):
     return (
         *super().rules(),
         *repl_rules(),
         *python_repl.rules(),
         *pex.rules(),
         *archive.rules(),
         *external_tool.rules(),
         *python_sources.rules(),
         *pex_from_targets.rules(),
         *stripped_source_files.rules(),
         *ancestor_files.rules(),
         QueryRule(Process, (PexProcess, OptionsBootstrapper)),
     )
コード例 #24
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(),
    ]
コード例 #25
0
 def rules(cls):
   return (
     *super().rules(),
     *awslambda_python_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(),
     RootRule(PythonAWSLambdaAdaptor),
   )
コード例 #26
0
ファイル: rules.py プロジェクト: briespoke/pants
def rules():
    return [
        setup,
        isort_fmt,
        isort_lint,
        SubsystemRule(Isort),
        UnionRule(PythonFmtRequest, IsortRequest),
        UnionRule(LintRequest, IsortRequest),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
コード例 #27
0
ファイル: rules.py プロジェクト: LarryFinn/pants
def rules():
    return [
        setup,
        black_fmt,
        black_lint,
        SubsystemRule(Black),
        UnionRule(PythonFmtFieldSets, BlackFieldSets),
        UnionRule(LinterFieldSets, BlackFieldSets),
        *download_pex_bin.rules(),
        *determine_source_files.rules(),
        *pex.rules(),
        *python_native_code.rules(),
        *strip_source_roots.rules(),
        *subprocess_environment.rules(),
    ]
コード例 #28
0
 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),
     )
コード例 #29
0
def rules():
    return (
        *download_pex_bin.rules(),
        *inject_init.rules(),
        *importable_python_sources.rules(),
        *pex.rules(),
        *pex_from_targets.rules(),
        *pytest_coverage.rules(),
        *pytest_runner.rules(),
        *python_create_binary.rules(),
        *python_native_code.rules(),
        *repl.rules(),
        *run_setup_py.rules(),
        *subprocess_environment.rules(),
    )
コード例 #30
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(),
    ]