9fc01086d3e6b7d1e659b7fbca22a21f93e191d8,src/python/pants/backend/python/lint/flake8/rules_integration_test.py,Flake8IntegrationTest,run_flake8,#,59

Before Change


        compatibility=interpreter_constraints,
      )
    )
    flake8_subsystem = global_subsystem_instance(
      Flake8, options={Flake8.options_scope: {
        "config": ".flake8" if config else None,
        "args": passthrough_args or [],
        "skip": skip,
      }}
    )
    return self.request_single_product(
      LintResult,
      Params(
        target,
        flake8_subsystem,
        PythonNativeCode.global_instance(),
        PythonSetup.global_instance(),
        SubprocessEnvironment.global_instance()
      )
    )

  def test_single_passing_source(self) -> None:
    result = self.run_flake8([self.good_source])

After Change


    interpreter_constraints: Optional[str] = None,
    skip: bool = False,
  ) -> LintResult:
    args = ["--backend-packages2=pants.backend.python.lint.flake8"]
    if config:
      // TODO: figure out how to get this file to exist...
      self.create_file(relpath=".flake8", contents=config)
      args.append("--flake8-config=.flake8")
    if passthrough_args:
      args.append(f"--flake8-args="{passthrough_args}"")
    if skip:
      args.append(f"--flake8-skip")
    input_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
    target = Flake8Target(
      PythonTargetAdaptor(
        sources=EagerFilesetWithSpec("test", {"globs": []}, snapshot=input_snapshot),
        address=Address.parse("test:target"),
        compatibility=[interpreter_constraints] if interpreter_constraints else None,
      )
    )
    return self.request_single_product(
      LintResult, Params(target, create_options_bootstrapper(args=args)),
    )

  def test_single_passing_source(self) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 25

Instances


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: pantsbuild/pants
Commit Name: 9fc01086d3e6b7d1e659b7fbca22a21f93e191d8
Time: 2020-01-10
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/isort/rules_integration_test.py
Class Name: IsortIntegrationTest
Method Name: run_isort


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