From d2d21652cda9a4525ed59a4103a384443416ea06 Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Fri, 22 Nov 2024 12:46:50 +0000 Subject: [PATCH] Linting fixes --- fedcloud_vm_monitoring/accounting.py | 4 +++- fedcloud_vm_monitoring/goc.py | 4 ---- fedcloud_vm_monitoring/site_accounting_cli.py | 4 ---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fedcloud_vm_monitoring/accounting.py b/fedcloud_vm_monitoring/accounting.py index 3659103..e1ab802 100644 --- a/fedcloud_vm_monitoring/accounting.py +++ b/fedcloud_vm_monitoring/accounting.py @@ -6,7 +6,9 @@ import httpx ACCOUNTING_URL = "https://accounting.egi.eu/" -SITE_VO_ACCOUNTING = "cloud/sum_elap_processors/SITE/VO/{start_year}/{start_month}/{end_year}/{end_month}/all/onlyinfrajobs/JSON/" +SITE_VO_ACCOUNTING = ("cloud/sum_elap_processors/SITE/VO/" + "{start_year}/{start_month}/{end_year}/{end_month}" + "/all/onlyinfrajobs/JSON/") class Accounting: diff --git a/fedcloud_vm_monitoring/goc.py b/fedcloud_vm_monitoring/goc.py index 2f6ca8a..b313da1 100644 --- a/fedcloud_vm_monitoring/goc.py +++ b/fedcloud_vm_monitoring/goc.py @@ -1,13 +1,9 @@ """Classes to interact with the GOCDB""" -import datetime -import numbers import re -import pprint import httpx import xmltodict -import yaml GOC_PUBLIC_URL = "https://goc.egi.eu/gocdbpi/public/" GOC_PRIVATE_URL = "https://goc.egi.eu/gocdbpi/private/" diff --git a/fedcloud_vm_monitoring/site_accounting_cli.py b/fedcloud_vm_monitoring/site_accounting_cli.py index bf962e9..2fb44d9 100644 --- a/fedcloud_vm_monitoring/site_accounting_cli.py +++ b/fedcloud_vm_monitoring/site_accounting_cli.py @@ -6,11 +6,7 @@ import yaml from fedcloud_vm_monitoring.accounting import Accounting -from fedcloud_vm_monitoring.appdb import AppDB from fedcloud_vm_monitoring.goc import GOCDB -from fedcloud_vm_monitoring.site_monitor import SiteMonitor, SiteMonitorException -from fedcloudclient.decorators import oidc_params -from fedcloudclient.sites import list_sites def check_site_slas(site, site_slas, goc, acct):