9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b,src/python/pants/backend/python/lint/pylint/rules_integration_test.py,PylintIntegrationTest,make_target_with_origin,#,49

Before Change


        origin: Optional[OriginSpec] = None,
        dependencies: Optional[List[Address]] = None,
    ) -> PythonTargetAdaptorWithOrigin:
        input_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
        adaptor_kwargs = dict(
            sources=EagerFilesetWithSpec(self.source_root, {"globs": []}, snapshot=input_snapshot),
            address=Address.parse(f"{self.source_root}:target"),
            dependencies=dependencies or [],
        )
        if interpreter_constraints:
            adaptor_kwargs["compatibility"] = interpreter_constraints
        if origin is None:
            origin = SingleAddress(directory=self.source_root, name="target")
        return PythonTargetAdaptorWithOrigin(PythonTargetAdaptor(**adaptor_kwargs), origin)

    def run_pylint(
        self,
        targets: List[PythonTargetAdaptorWithOrigin],

After Change


            path=self.source_root, target_type=PythonLibrary.alias, name=name, sources=source_globs
        )
        // We must re-write the files because `create_library` will have over-written the content.
        for source_file in source_files:
            self.create_file(source_file.path, source_file.content.decode())
        target = PythonLibrary(
            {
                Sources.alias: source_globs,
                Dependencies.alias: dependencies,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 26

Instances


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/pylint/rules_integration_test.py
Class Name: PylintIntegrationTest
Method Name: make_target_with_origin


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/bandit/rules_integration_test.py
Class Name: BanditIntegrationTest
Method Name: make_target_with_origin


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/flake8/rules_integration_test.py
Class Name: Flake8IntegrationTest
Method Name: make_target_with_origin


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/pylint/rules_integration_test.py
Class Name: PylintIntegrationTest
Method Name: make_target_with_origin