51f28b7a95713365c951d0c07d9aec735f5e541a,src/python/pants/backend/python/lint/pylint/rules.py,,lint,#Any#Any#Any#Any#,48

Before Change


    // Pylint needs direct dependencies in the chroot to ensure that imports are valid. However, it
    // doesn"t lint those direct dependencies nor does it care about transitive dependencies.
    // TODO: simplify this once there"s a way to go from TargetAdaptor -> HydratedTarget.
    hydrated_targets = await MultiGet(
        Get[HydratedTarget](Address, adaptor_with_origin.adaptor.address)
        for adaptor_with_origin in adaptors_with_origins
    )
    dependencies = await MultiGet(
        Get[HydratedTarget](Address, dependency)

After Change


    // Pylint needs direct dependencies in the chroot to ensure that imports are valid. However, it
    // doesn"t lint those direct dependencies nor does it care about transitive dependencies.
    hydrated_targets = [
        HydratedTarget(adaptor_with_origin.adaptor) for adaptor_with_origin in adaptors_with_origins
    ]
    dependencies = await MultiGet(
        Get[HydratedTarget](Address, dependency)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 51f28b7a95713365c951d0c07d9aec735f5e541a
Time: 2020-03-04
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/pylint/rules.py
Class Name:
Method Name: lint


Project Name: pantsbuild/pants
Commit Name: 95a2e14c7613e4603a629dbc1c26799b40412391
Time: 2020-02-26
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/rules/prepare_chrooted_python_sources.py
Class Name:
Method Name: prepare_chrooted_python_sources


Project Name: pantsbuild/pants
Commit Name: bedf92358fb96e24f57a2f1183ccb395f0609c40
Time: 2020-04-14
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/rules/core/test.py
Class Name:
Method Name: run_tests