diff options
author | 2023-11-09 17:26:42 +0000 | |
---|---|---|
committer | 2023-11-09 17:26:42 +0000 | |
commit | bdd52fb7ac948002cbbd4b9b1a97f9750e715e39 (patch) | |
tree | b3b51038c279390c44eb81a4612f8a29d01e4631 | |
parent | Bump kubernetes_asyncio to 28.2.0 (diff) |
Format code to new ruff formatter standards
-rw-r--r-- | arthur/__init__.py | 1 | ||||
-rw-r--r-- | arthur/__main__.py | 1 | ||||
-rw-r--r-- | arthur/apis/kubernetes/certificates.py | 1 | ||||
-rw-r--r-- | arthur/apis/kubernetes/deployments.py | 1 | ||||
-rw-r--r-- | arthur/apis/kubernetes/jobs.py | 1 | ||||
-rw-r--r-- | arthur/apis/kubernetes/nodes.py | 1 | ||||
-rw-r--r-- | arthur/bot.py | 1 | ||||
-rw-r--r-- | arthur/config.py | 1 | ||||
-rw-r--r-- | arthur/exts/cloudflare/zones.py | 1 | ||||
-rw-r--r-- | arthur/exts/error_handler/error_handler.py | 1 | ||||
-rw-r--r-- | arthur/exts/kubernetes/certificates.py | 1 | ||||
-rw-r--r-- | arthur/exts/kubernetes/deployments.py | 1 | ||||
-rw-r--r-- | arthur/exts/kubernetes/jobs.py | 1 | ||||
-rw-r--r-- | arthur/exts/kubernetes/nodes.py | 1 |
14 files changed, 14 insertions, 0 deletions
diff --git a/arthur/__init__.py b/arthur/__init__.py index 4f66dcd..269a320 100644 --- a/arthur/__init__.py +++ b/arthur/__init__.py @@ -1,4 +1,5 @@ """King Arthur is Python Discord's DevOps utility bot.""" + import asyncio import os from functools import partial diff --git a/arthur/__main__.py b/arthur/__main__.py index bc09f09..d5cfffd 100644 --- a/arthur/__main__.py +++ b/arthur/__main__.py @@ -1,4 +1,5 @@ """Entrypoint for King Arthur.""" + import asyncio import aiohttp diff --git a/arthur/apis/kubernetes/certificates.py b/arthur/apis/kubernetes/certificates.py index 45ce9ec..86ad983 100644 --- a/arthur/apis/kubernetes/certificates.py +++ b/arthur/apis/kubernetes/certificates.py @@ -1,4 +1,5 @@ """APIs for interacting with TLS certificates through cert-manager.io CRDs.""" + from typing import Any from kubernetes_asyncio import client diff --git a/arthur/apis/kubernetes/deployments.py b/arthur/apis/kubernetes/deployments.py index 971c4a0..305f4cf 100644 --- a/arthur/apis/kubernetes/deployments.py +++ b/arthur/apis/kubernetes/deployments.py @@ -1,4 +1,5 @@ """APIs for working with Kubernetes deployments.""" + from datetime import UTC, datetime from kubernetes_asyncio import client diff --git a/arthur/apis/kubernetes/jobs.py b/arthur/apis/kubernetes/jobs.py index 606177c..2813122 100644 --- a/arthur/apis/kubernetes/jobs.py +++ b/arthur/apis/kubernetes/jobs.py @@ -1,4 +1,5 @@ """APIs for interacting with Kubernetes Jobs & Cronjobs.""" + from typing import Any from kubernetes_asyncio import client diff --git a/arthur/apis/kubernetes/nodes.py b/arthur/apis/kubernetes/nodes.py index 6a68b70..ed45c26 100644 --- a/arthur/apis/kubernetes/nodes.py +++ b/arthur/apis/kubernetes/nodes.py @@ -1,4 +1,5 @@ """APIs for interacting with Kubernetes nodes.""" + from kubernetes_asyncio import client from kubernetes_asyncio.client.api_client import ApiClient from kubernetes_asyncio.client.models import V1NodeList diff --git a/arthur/bot.py b/arthur/bot.py index 9ce39ba..4d56df2 100644 --- a/arthur/bot.py +++ b/arthur/bot.py @@ -1,4 +1,5 @@ """Module containing the core bot base for King Arthur.""" + from pathlib import Path from typing import Any diff --git a/arthur/config.py b/arthur/config.py index c7d61ce..66e89a7 100644 --- a/arthur/config.py +++ b/arthur/config.py @@ -1,4 +1,5 @@ """Utilities for interacting with the config for King Arthur.""" + from pydantic_settings import BaseSettings diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 5840d36..8a6badc 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -1,4 +1,5 @@ """The zones cog helps with managing Cloudflare zones.""" + import aiohttp import discord from discord.ext import commands diff --git a/arthur/exts/error_handler/error_handler.py b/arthur/exts/error_handler/error_handler.py index 5273b8a..f959c70 100644 --- a/arthur/exts/error_handler/error_handler.py +++ b/arthur/exts/error_handler/error_handler.py @@ -1,4 +1,5 @@ """This cog provides error handling for King Arthur.""" + from discord import Message from discord.ext import commands from discord.ext.commands import Cog diff --git a/arthur/exts/kubernetes/certificates.py b/arthur/exts/kubernetes/certificates.py index a031076..a1306c9 100644 --- a/arthur/exts/kubernetes/certificates.py +++ b/arthur/exts/kubernetes/certificates.py @@ -1,4 +1,5 @@ """The Certificates cog helps with managing TLS certificates.""" + from textwrap import dedent from discord.ext import commands diff --git a/arthur/exts/kubernetes/deployments.py b/arthur/exts/kubernetes/deployments.py index 46e09a3..b631688 100644 --- a/arthur/exts/kubernetes/deployments.py +++ b/arthur/exts/kubernetes/deployments.py @@ -1,4 +1,5 @@ """The Deployments cog helps with managing Kubernetes deployments.""" + from textwrap import dedent from discord import ButtonStyle, Interaction, ui diff --git a/arthur/exts/kubernetes/jobs.py b/arthur/exts/kubernetes/jobs.py index 9a0f645..de7a9fd 100644 --- a/arthur/exts/kubernetes/jobs.py +++ b/arthur/exts/kubernetes/jobs.py @@ -1,4 +1,5 @@ """The zones cog helps with managing Cloudflare zones.""" + import discord from discord.ext import commands from kubernetes_asyncio.client.models import V1CronJobList diff --git a/arthur/exts/kubernetes/nodes.py b/arthur/exts/kubernetes/nodes.py index f42d3ed..583f095 100644 --- a/arthur/exts/kubernetes/nodes.py +++ b/arthur/exts/kubernetes/nodes.py @@ -1,4 +1,5 @@ """The Nodes cog helps with managing Kubernetes nodes.""" + from textwrap import dedent from discord.ext import commands |