Skip to content

Commit 635d92a

Browse files
committed
lint
1 parent 5fd8f9e commit 635d92a

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

library_generation/owlbot/synthtool/gcp/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
class CommonTemplates:
4646
def __init__(self, template_path: Optional[Path] = None):
4747
if LOCAL_TEMPLATES is None:
48-
logger.error("env var SYNTHTOOL_TEMPLATES must be set")
49-
sys.exit(1)
48+
logger.error("env var SYNTHTOOL_TEMPLATES must be set")
49+
sys.exit(1)
5050
logger.debug(f"Using local templates at {LOCAL_TEMPLATES}")
5151
self._template_root = Path(LOCAL_TEMPLATES)
5252
self._templates = templates.Templates(self._template_root)
@@ -151,6 +151,7 @@ def _get_default_branch_name(repository_name: str) -> str:
151151
# the majority of our repositories:
152152
return os.getenv("DEFAULT_BRANCH", "master")
153153

154+
154155
def load_partials(files: List[str] = []) -> Dict:
155156
"""
156157
hand-crafted artisanal markdown can be provided in a .readme-partials.yml.

library_generation/owlbot/synthtool/languages/java.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ def common_templates(
350350
)
351351
)
352352

353-
templates = gcp.common.CommonTemplates(template_path=template_path).java_library(**kwargs)
353+
templates = gcp.common.CommonTemplates(template_path=template_path).java_library(
354+
**kwargs
355+
)
354356

355357
# skip README generation on Kokoro (autosynth)
356358
if os.environ.get("KOKORO_ROOT") is not None:

library_generation/owlbot/synthtool/sources/templates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,3 @@ def render(self, subdir: PathOrStr = ".", **kwargs) -> Path:
7979
print(f"Skipping: {template_name}")
8080

8181
return self.dir
82-

library_generation/owlbot/synthtool/transforms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
logger = logging.getLogger()
2929
logger.setLevel(logging.DEBUG)
3030

31+
3132
class MissingSourceError(Exception):
3233
pass
3334

0 commit comments

Comments
 (0)