Skip to content

Commit abf8d66

Browse files
committed
chore: Run black code formatter in hermetic_build/
1 parent 9f8e1f0 commit abf8d66

9 files changed

Lines changed: 19 additions & 20 deletions

File tree

hermetic_build/common/model/library_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from common.model.gapic_config import GapicConfig
1818
from common.model.gapic_inputs import GapicInputs
1919

20-
2120
MAVEN_COORDINATE_SEPARATOR = ":"
2221

2322

hermetic_build/library_generation/generate_composed_library.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- A "grafeas" folder found in the googleapis/googleapis repository
2828
Note: googleapis repo is found in https://github.com/googleapis/googleapis.
2929
"""
30+
3031
import os
3132
from pathlib import Path
3233
from typing import List

hermetic_build/library_generation/model/repo_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
from common.model.library_config import LibraryConfig
1616

17-
1817
GRPC_PREFIX = "grpc-"
1918
PROTO_PREFIX = "proto-"
2019
NEW_CLIENT_VERSION = "0.0.0"

hermetic_build/library_generation/owlbot/src/fix-license-headers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import glob
1717
from synthtool.languages import java
1818

19-
2019
root = Path(".").resolve()
2120

2221
# Until the generator generates license headers on generated proto

hermetic_build/library_generation/owlbot/synthtool/_tracked_paths.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import pathlib
2121

22-
2322
_tracked_paths = []
2423

2524

hermetic_build/library_generation/owlbot/synthtool/sources/templates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import jinja2
1818
import tempfile
1919

20-
2120
PathOrStr = Union[str, Path]
2221

2322

hermetic_build/library_generation/tests/owlbot/java_unit_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def assert_valid_yaml(file):
9595
# use os.walk because glob ignores hidden directories
9696
for dirpath, _, filenames in os.walk(workdir):
9797
for file in filenames:
98-
(_, ext) = os.path.splitext(file)
98+
_, ext = os.path.splitext(file)
9999
if ext == ".xml":
100100
assert_valid_xml(os.path.join(dirpath, file))
101101
elif ext == ".yaml" or ext == ".yml":

hermetic_build/library_generation/tests/resources/goldens/owlbot-golden.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@
1515
import synthtool as s
1616
from synthtool.languages import java
1717

18-
1918
for library in s.get_staging_dirs():
2019
# put any special-case replacements here
2120
s.move(library)
2221

2322
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"
36-
])
23+
java.common_templates(
24+
monorepo=True,
25+
excludes=[
26+
".github/*",
27+
".kokoro/*",
28+
"samples/*",
29+
"CODE_OF_CONDUCT.md",
30+
"CONTRIBUTING.md",
31+
"LICENSE",
32+
"SECURITY.md",
33+
"java.header",
34+
"license-checks.xml",
35+
"renovate.json",
36+
".gitignore",
37+
],
38+
)

hermetic_build/library_generation/tests/utilities_unit_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616
Unit tests for python scripts
1717
"""
18+
1819
import shutil
1920
import unittest
2021
import os

0 commit comments

Comments
 (0)