9fc01086d3e6b7d1e659b7fbca22a21f93e191d8,src/python/pants/backend/python/lint/black/rules_integration_test.py,BlackIntegrationTest,run_black,#,63

Before Change


    lint_target = BlackTarget(target_adaptor)
    fmt_target = BlackTarget(target_adaptor, prior_formatter_result_digest=input_snapshot.directory_digest)
    black_subsystem = global_subsystem_instance(
      Black, options={Black.options_scope: {
        "config": "pyproject.toml" if config else None,
        "args": passthrough_args or [],
        "skip": skip,
      }}
    )
    python_subsystems = [
      PythonNativeCode.global_instance(),
      PythonSetup.global_instance(),

After Change


    passthrough_args: Optional[str] = None,
    skip: bool = False,
  ) -> Tuple[LintResult, FmtResult]:
    args = ["--backend-packages2=pants.backend.python.lint.black"]
    if config is not None:
      self.create_file(relpath="pyproject.toml", contents=config)
      args.append("--black-config=pyproject.toml")
    if passthrough_args:
      args.append(f"--black-args="{passthrough_args}"")
    if skip:
      args.append(f"--black-skip")
    input_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
    target_adaptor = TargetAdaptor(
      sources=EagerFilesetWithSpec("test", {"globs": []}, snapshot=input_snapshot),
      address=Address.parse("test:target"),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 9fc01086d3e6b7d1e659b7fbca22a21f93e191d8
Time: 2020-01-10
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/black/rules_integration_test.py
Class Name: BlackIntegrationTest
Method Name: run_black


Project Name: pantsbuild/pants
Commit Name: 9fc01086d3e6b7d1e659b7fbca22a21f93e191d8
Time: 2020-01-10
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/flake8/rules_integration_test.py
Class Name: Flake8IntegrationTest
Method Name: run_flake8


Project Name: theislab/scanpy
Commit Name: cbecbe8eea332fae79c544e69631761f45a247ed
Time: 2017-08-30
Author: flying-sheep@web.de
File Name: setup.py
Class Name:
Method Name: