From acf949a851390a494de9ebffd54fb7ef97765550 Mon Sep 17 00:00:00 2001 From: Iain-S <25081046+Iain-S@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:10:56 +0100 Subject: [PATCH] Run updated black --- controller_function/run_now.py | 1 + docs/conf.py | 1 + status_function/run_now.py | 1 + usage_function/costmanagement/__init__.py | 1 + usage_function/monthly_usage/__init__.py | 1 + usage_function/run_costmanagement.py | 1 + usage_function/run_monthly_usage.py | 1 + usage_function/run_usage.py | 1 + usage_function/tests/test_function_app.py | 1 + usage_function/tests/test_utils.py | 1 + usage_function/utils/settings.py | 6 +++--- 11 files changed, 13 insertions(+), 3 deletions(-) diff --git a/controller_function/run_now.py b/controller_function/run_now.py index f8246d2..fb157c0 100644 --- a/controller_function/run_now.py +++ b/controller_function/run_now.py @@ -1,4 +1,5 @@ """Force our Azure function to run, regardless of the time.""" + import types from controller import main diff --git a/docs/conf.py b/docs/conf.py index 3e71848..093bd66 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Configuration file for the Sphinx documentation builder.""" + import os import pathlib import sys diff --git a/status_function/run_now.py b/status_function/run_now.py index 38ff93c..088bb6a 100644 --- a/status_function/run_now.py +++ b/status_function/run_now.py @@ -1,4 +1,5 @@ """Force our Azure function to run, regardless of the time.""" + import types from status import main diff --git a/usage_function/costmanagement/__init__.py b/usage_function/costmanagement/__init__.py index 992bdef..9c174db 100644 --- a/usage_function/costmanagement/__init__.py +++ b/usage_function/costmanagement/__init__.py @@ -1,4 +1,5 @@ """An Azure function to collect cost-management information.""" + import logging from datetime import datetime, timedelta from typing import Final diff --git a/usage_function/monthly_usage/__init__.py b/usage_function/monthly_usage/__init__.py index e63a767..a4f52c7 100644 --- a/usage_function/monthly_usage/__init__.py +++ b/usage_function/monthly_usage/__init__.py @@ -1,4 +1,5 @@ """An Azure Function App to collect usage information for the previous month.""" + import logging import time from datetime import datetime, timedelta diff --git a/usage_function/run_costmanagement.py b/usage_function/run_costmanagement.py index 059d754..e8d3c4e 100644 --- a/usage_function/run_costmanagement.py +++ b/usage_function/run_costmanagement.py @@ -1,4 +1,5 @@ """Force our Azure function to run, regardless of the time.""" + import types from costmanagement import main diff --git a/usage_function/run_monthly_usage.py b/usage_function/run_monthly_usage.py index f5937cf..8f94324 100644 --- a/usage_function/run_monthly_usage.py +++ b/usage_function/run_monthly_usage.py @@ -1,4 +1,5 @@ """Force our Azure function to run, regardless of the time.""" + import types from monthly_usage import main diff --git a/usage_function/run_usage.py b/usage_function/run_usage.py index ec7eb0d..9b6a8f3 100644 --- a/usage_function/run_usage.py +++ b/usage_function/run_usage.py @@ -1,4 +1,5 @@ """Force our Azure function to run, regardless of the time.""" + import types from usage import main diff --git a/usage_function/tests/test_function_app.py b/usage_function/tests/test_function_app.py index 16a525c..10a0585 100644 --- a/usage_function/tests/test_function_app.py +++ b/usage_function/tests/test_function_app.py @@ -1,4 +1,5 @@ """Tests for Azure functions.""" + from datetime import date, datetime, timedelta from typing import Final from unittest import TestCase, main diff --git a/usage_function/tests/test_utils.py b/usage_function/tests/test_utils.py index 5ac8435..5fe584a 100644 --- a/usage_function/tests/test_utils.py +++ b/usage_function/tests/test_utils.py @@ -1,4 +1,5 @@ """Tests for function app utils.""" + import logging from datetime import date, datetime, timedelta from typing import Final diff --git a/usage_function/utils/settings.py b/usage_function/utils/settings.py index 7209e14..f6c4462 100644 --- a/usage_function/utils/settings.py +++ b/usage_function/utils/settings.py @@ -18,9 +18,9 @@ class Settings(BaseSettings): LOG_LEVEL: str = "WARNING" # The log level CM_MGMT_GROUP: Optional[str] = None # The cost management function mgmt group MGMT_GROUP: Optional[str] = None # Either, the usage function mgmt group... - BILLING_ACCOUNT_ID: Optional[ - str - ] = None # ...or the usage function billing account ID + BILLING_ACCOUNT_ID: Optional[str] = ( + None # ...or the usage function billing account ID + ) CENTRAL_LOGGING_CONNECTION_STRING: Optional[str] = None # Settings for the settings class itself.