Add mypy and add typechecking step to script/test

Only check atst/domain/csp/cloud.py for now
This commit is contained in:
richard-dds
2019-10-24 14:44:53 -04:00
parent 76ab44ca69
commit c66b1ef2f9
7 changed files with 235 additions and 174 deletions

View File

@@ -145,7 +145,7 @@ class BaselineProvisionException(GeneralCSPException):
class CloudProviderInterface:
def root_creds() -> Dict:
def root_creds(self) -> Dict:
raise NotImplementedError()
def create_environment(
@@ -713,6 +713,7 @@ class AWSCloudProvider(CloudProviderInterface):
}
"""
)
return policy_template.render(
rendered = policy_template.render(
account_id=account_id, role_name=self.root_account_policy_name
)
return json.loads(rendered)