diff --git a/prometheuspvesd/config.py b/prometheuspvesd/config.py index d6b5084..492bdee 100644 --- a/prometheuspvesd/config.py +++ b/prometheuspvesd/config.py @@ -20,7 +20,7 @@ cache_dir = AppDirs("prometheus-pve-sd").user_cache_dir default_output_file = os.path.join(cache_dir, "pve.json") -class Config(): +class Config: """ Create an object with all necessary settings. diff --git a/prometheuspvesd/discovery.py b/prometheuspvesd/discovery.py index b835b48..bf1f192 100644 --- a/prometheuspvesd/discovery.py +++ b/prometheuspvesd/discovery.py @@ -20,7 +20,7 @@ PROPAGATION_TIME = Summary( HOST_GAUGE = Gauge("pve_sd_hosts", "Number of hosts discovered by PVE SD") -class Discovery(): +class Discovery: """Prometheus PVE Service Discovery.""" def __init__(self): diff --git a/pyproject.toml b/pyproject.toml index 7d34a93..a208ec5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,6 +112,7 @@ ignore = [ "D203", "D212", "UP038", + "RUF012", ] line-length = 99 select = [