diff options
author | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:16:39 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.com> | 2023-11-30 12:56:46 +0300 |
commit | 8951ddf780e02616cdb2ec54a02bc354e8507c0f (patch) | |
tree | 478097488957d3b554e25868c972a959bb40d78e /build/scripts/generate_pom.py | |
parent | a5acb7aa4ca5a4603215e878eb0cad786793262b (diff) | |
download | ydb-8951ddf780e02616cdb2ec54a02bc354e8507c0f.tar.gz |
`build/scripts` ya style --py
Diffstat (limited to 'build/scripts/generate_pom.py')
-rw-r--r-- | build/scripts/generate_pom.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/scripts/generate_pom.py b/build/scripts/generate_pom.py index d91bce6249..e8fa65e0fa 100644 --- a/build/scripts/generate_pom.py +++ b/build/scripts/generate_pom.py @@ -132,7 +132,7 @@ def build_pom_and_export_to_maven(**kwargs): project = et.Element( '{}{}{}project'.format('{', DEFAULT_NAMESPACE, '}'), - attrib={'{}{}{}schemaLocation'.format('{', XSI_NAMESPACE, '}'): SCHEMA_LOCATION} + attrib={'{}{}{}schemaLocation'.format('{', XSI_NAMESPACE, '}'): SCHEMA_LOCATION}, ) group_id, artifact_id, version = target.split(':') @@ -185,7 +185,9 @@ def build_pom_and_export_to_maven(**kwargs): if test_resource_dirs: test_resource_element = et.SubElement(build, 'testResources') for test_resource_dir in test_resource_dirs: - et.SubElement(et.SubElement(test_resource_element, 'testResource'), 'directory').text = '${basedir}' + (('/' + test_resource_dir) if test_resource_dir != '.' else '') + et.SubElement(et.SubElement(test_resource_element, 'testResource'), 'directory').text = '${basedir}' + ( + ('/' + test_resource_dir) if test_resource_dir != '.' else '' + ) plugins = et.SubElement(build, 'plugins') @@ -294,7 +296,9 @@ def build_pom_and_export_to_maven(**kwargs): et.SubElement(surefire_plugin, 'groupId').text = MAVEN_SUREFIRE_GROUP_ID et.SubElement(surefire_plugin, 'artifactId').text = MAVEN_SUREFIRE_ARTIFACT_ID et.SubElement(surefire_plugin, 'version').text = MAVEN_SUREFIRE_VERSION - classpath_excludes = et.SubElement(et.SubElement(surefire_plugin, 'configuration'), 'classpathDependencyExcludes') + classpath_excludes = et.SubElement( + et.SubElement(surefire_plugin, 'configuration'), 'classpathDependencyExcludes' + ) for classpath_exclude in test_target_dependencies_exclude: et.SubElement(classpath_excludes, 'classpathDependencyExclude').text = classpath_exclude |