9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b,src/python/pants/backend/python/lint/docformatter/rules.py,,setup,#Any#Any#Any#Any#,60
Before Change
python_setup: PythonSetup,
subprocess_encoding_environment: SubprocessEncodingEnvironment,
) -> Setup:
adaptors_with_origins = request.formatter.adaptors_with_origins
requirements_pex = await Get[Pex](
PexRequest(
output_filename="docformatter.pex",
requirements=PexRequirements(docformatter.get_requirement_specs()),
interpreter_constraints=PexInterpreterConstraints(
docformatter.default_interpreter_constraints
),
entry_point=docformatter.get_entry_point(),
)
)
if request.formatter.prior_formatter_result is None:
all_source_files = await Get[SourceFiles](
LegacyAllSourceFilesRequest(
adaptor_with_origin.adaptor for adaptor_with_origin in adaptors_with_origins
)
)
all_source_files_snapshot = all_source_files.snapshot
else:
all_source_files_snapshot = request.formatter.prior_formatter_result
specified_source_files = await Get[SourceFiles](
LegacySpecifiedSourceFilesRequest(adaptors_with_origins)
)
merged_input_files = await Get[Digest](
DirectoriesToMerge(
directories=(
all_source_files_snapshot.directory_digest,
requirements_pex.directory_digest,
)
),
)
address_references = ", ".join(
sorted(
adaptor_with_origin.adaptor.address.reference()
for adaptor_with_origin in adaptors_with_origins
)
)
process = requirements_pex.create_execute_request(
After Change
if request.configs.prior_formatter_result is None:
all_source_files = await Get[SourceFiles](
AllSourceFilesRequest(config.sources for config in request.configs)
)
all_source_files_snapshot = all_source_files.snapshot
else:
all_source_files_snapshot = request.configs.prior_formatter_result
specified_source_files = await Get[SourceFiles](
SpecifiedSourceFilesRequest((config.sources, config.origin) for config in request.configs)
)
merged_input_files = await Get[Digest](
DirectoriesToMerge(
directories=(
all_source_files_snapshot.directory_digest,
requirements_pex.directory_digest,
)
),
)
address_references = ", ".join(sorted(config.address.reference() for config in request.configs))
process = requirements_pex.create_execute_request(
python_setup=python_setup,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
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/docformatter/rules.py
Class Name:
Method Name: setup
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/isort/rules.py
Class Name:
Method Name: setup
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/docformatter/rules.py
Class Name:
Method Name: setup
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/black/rules.py
Class Name:
Method Name: setup