本文整理汇总了Python中pants.backend.jvm.subsystems.shader.Shading.create_exclude方法的典型用法代码示例。如果您正苦于以下问题:Python Shading.create_exclude方法的具体用法?Python Shading.create_exclude怎么用?Python Shading.create_exclude使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pants.backend.jvm.subsystems.shader.Shading
的用法示例。
在下文中一共展示了Shading.create_exclude方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: register_options
# 需要导入模块: from pants.backend.jvm.subsystems.shader import Shading [as 别名]
# 或者: from pants.backend.jvm.subsystems.shader.Shading import create_exclude [as 别名]
def register_options(cls, register):
super(ErrorProne, cls).register_options(register)
register('--skip', type=bool, help='Skip Error Prone.')
register('--transitive', default=False, type=bool,
help='Run Error Prone against transitive dependencies of targets '
'specified on the command line.')
register('--command-line-options', type=list, default=[], fingerprint=True,
help='Command line options passed to Error Prone')
register('--exclude-patterns', type=list, default=[], fingerprint=True,
help='Patterns for targets to be excluded from analysis.')
cls.register_jvm_tool(register,
'errorprone',
classpath=[
JarDependency(org='com.google.errorprone',
name='error_prone_core',
rev='2.0.17'),
],
main=cls._ERRORPRONE_MAIN,
custom_rules=[
Shader.exclude_package('com.google.errorprone', recursive=True),
Shading.create_exclude('*'), # https://github.com/pantsbuild/pants/issues/4288
]
)
示例2: assert_exclude
# 需要导入模块: from pants.backend.jvm.subsystems.shader import Shading [as 别名]
# 或者: from pants.backend.jvm.subsystems.shader.Shading import create_exclude [as 别名]
def assert_exclude(from_pattern, to_pattern):
self.assertEqual((from_pattern, to_pattern), Shading.create_exclude(from_pattern))