Skip to content

Commit c1801a7

Browse files
authored
chore: Update owlbot.py format for all modules (#12117)
This should match the new format from the black (python formatter) updated in sdk-platform-java: https://github.com/googleapis/sdk-platform-java/blob/67a2ecb689c267bb7afa0685ed030216da223c4a/hermetic_build/library_generation/templates/owlbot.py.j2#L22-L30
1 parent 49cc185 commit c1801a7

File tree

235 files changed

+3278
-2810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+3278
-2810
lines changed

generation/update_owlbot_postprocessor_config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ for dir in $(find . -mindepth 2 -maxdepth 2 -name owlbot.py | sort | xargs dirna
1010
pushd "$dir"
1111

1212
# form a perl command to replace java.common_templates() invocation
13-
perl_command='s/java\.common_templates\(.*\)/java.common_templates(monorepo=True, excludes=['
13+
perl_command='s/java\.common_templates\(.*\)/java.common_templates(\n monorepo=True,\n excludes=['
1414
comma=""
1515
for exclusion in '.github/*' '.kokoro/*' 'samples/*' 'CODE_OF_CONDUCT.md' 'CONTRIBUTING.md' 'LICENSE' 'SECURITY.md' 'java.header' 'license-checks.xml' 'renovate.json' '.gitignore'; do
16-
perl_command+="${comma}\n $(echo "\"${exclusion}\"" | sed 's/\//\\\//g')"
16+
perl_command+="${comma}\n $(echo "\"${exclusion}\"" | sed 's/\//\\\//g')"
1717
comma=","
1818

1919
# delete files and directories

java-accessapproval/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-accesscontextmanager/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-admanager/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-advisorynotifications/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-aiplatform/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-alloydb-connectors/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-alloydb/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-analytics-admin/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

java-analytics-data/owlbot.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore"
3638
])

0 commit comments

Comments
 (0)