Skip to content

Commit 7fe0476

Browse files
committed
Fix format with new version of Black
1 parent 719d532 commit 7fe0476

28 files changed

Lines changed: 44 additions & 45 deletions

samcli/hook_packages/terraform/copy_terraform_built_artifacts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
2-
Python script that prepares artifacts for SAM CLI to invoke.
2+
Python script that prepares artifacts for SAM CLI to invoke.
33
This script will work in both Linux/MacOS and Windows.
44
55
It consists of 5 steps:
66
1. create a temporary TF backend (create_backend_override)
77
2. run `terraform init -reconfigure`
88
3. run `terraform apply` on the SAM CLI Metadata resource
99
4. run `terraform out` to produce an output
10-
5. parse the output to locate the built artifact, and move it to the SAM CLI
10+
5. parse the output to locate the built artifact, and move it to the SAM CLI
1111
build artifact directory (find_and_copy_assets)
1212
1313
Note: This script intentionally does not use Python3 specific syntax.

samcli/hook_packages/terraform/hooks/prepare/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Contains the data types used in the TF prepare hook"""
1+
"""Contains the data types used in the TF prepare hook"""
22

33
from abc import ABC
44
from copy import deepcopy

samcli/hook_packages/terraform/hooks/prepare/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Maintain the utilities functions used in prepare hook """
1+
"""Maintain the utilities functions used in prepare hook"""
22

33
from samcli.hook_packages.terraform.hooks.prepare.constants import COMPILED_REGULAR_EXPRESSION
44

samcli/hook_packages/terraform/lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def build_cfn_logical_id(tf_address: str) -> str:
5252

5353

5454
def _calculate_configuration_attribute_value_hash(
55-
configuration_attribute_value: Union[str, List[Union[ConstantValue, ResolvedReference]]]
55+
configuration_attribute_value: Union[str, List[Union[ConstantValue, ResolvedReference]]],
5656
) -> str:
5757
"""
5858
Create a hash value of an attribute value of the resource configuration.

samcli/lib/bootstrap/companion_stack/companion_stack_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Companion stack template builder
2+
Companion stack template builder
33
"""
44

55
from typing import Dict, cast

samcli/lib/bootstrap/companion_stack/companion_stack_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Companion stack manager
2+
Companion stack manager
33
"""
44

55
import logging

samcli/lib/bootstrap/companion_stack/data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Date type classes for companion stacks
2+
Date type classes for companion stacks
33
"""
44

55
import posixpath

samcli/lib/cookiecutter/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Exceptions raised from the cookiecutter workflow"""
1+
"""Exceptions raised from the cookiecutter workflow"""
22

33

44
class CookiecutterErrorException(Exception):

samcli/lib/cookiecutter/interactive_flow_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" This module parses a json/yaml file that defines a flow of questions to fulfill the cookiecutter context"""
1+
"""This module parses a json/yaml file that defines a flow of questions to fulfill the cookiecutter context"""
22

33
from typing import Dict, Optional, Tuple
44

samcli/lib/cookiecutter/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Define a processor to process the cookiecutter context before/after generating a cookiecutter project"""
1+
"""Define a processor to process the cookiecutter context before/after generating a cookiecutter project"""
22

33
from abc import ABC, abstractmethod
44
from typing import Dict

0 commit comments

Comments
 (0)