d161013912e98279f6a1458228ba42882f618c6e,src/python/pants/backend/python/lint/python_format_target.py,,rules,#,74
Before Change
def rules():
return [
format_python_target,
target_adaptor,
app_adaptor,
binary_adaptor,
tests_adaptor,
plugin_adaptor,
UnionRule(FormatTarget, PythonTargetAdaptor),
UnionRule(FormatTarget, PythonAppAdaptor),
UnionRule(FormatTarget, PythonBinaryAdaptor),
UnionRule(FormatTarget, PythonTestsAdaptor),
UnionRule(FormatTarget, PantsPluginAdaptor),
]
After Change
def rules():
return [
format_python_target,
target_adaptor,
app_adaptor,
binary_adaptor,
tests_adaptor,
plugin_adaptor,
*(RootRule(target_type) for target_type in PYTHON_TARGET_TYPES),
*(UnionRule(FormatTarget, target_type) for target_type in PYTHON_TARGET_TYPES)
]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: pantsbuild/pants
Commit Name: d161013912e98279f6a1458228ba42882f618c6e
Time: 2020-02-03
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/python_format_target.py
Class Name:
Method Name: rules
Project Name: pantsbuild/pants
Commit Name: d161013912e98279f6a1458228ba42882f618c6e
Time: 2020-02-03
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/python_lint_target.py
Class Name:
Method Name: rules
Project Name: pantsbuild/pants
Commit Name: 99c2a50bf0b70732aa6c0aae9b74db0969ff4f6f
Time: 2018-04-05
Author: stuhood@twitter.com
File Name: src/python/pants/engine/build_files.py
Class Name:
Method Name: create_graph_rules