diff --git a/app/models/mirrors.py b/app/models/mirrors.py index fd1462b..addae61 100644 --- a/app/models/mirrors.py +++ b/app/models/mirrors.py @@ -55,7 +55,7 @@ class Origin(AbstractConfiguration): proxy.destroy() @property - def normalised_domain_name(self): + def normalised_domain_name(self) -> str: extracted_domain = tldextract.extract(self.domain_name) return extracted_domain.registered_domain diff --git a/app/portal/report.py b/app/portal/report.py index 8899037..219f1bc 100644 --- a/app/portal/report.py +++ b/app/portal/report.py @@ -1,3 +1,5 @@ +# mypy: ignore-errors + from datetime import datetime, timedelta from flask import Blueprint, render_template diff --git a/app/terraform/proxy/__init__.py b/app/terraform/proxy/__init__.py index ff1657b..864a305 100644 --- a/app/terraform/proxy/__init__.py +++ b/app/terraform/proxy/__init__.py @@ -79,7 +79,7 @@ class ProxyAutomation(TerraformAutomation): raise NotImplementedError() def enabled(self) -> bool: - return current_app.config.get(self.cloud_name.upper() + "_ENABLED", False) + return bool(current_app.config.get(self.cloud_name.upper() + "_ENABLED", False)) def tf_prehook(self) -> Optional[Any]: # pylint: disable=useless-return return None