From d1eef0378bbf31c38c5e446eb58451d54dc9e1e0 Mon Sep 17 00:00:00 2001 From: Sylvain Hellegouarch Date: Mon, 25 Mar 2024 11:21:37 +0100 Subject: [PATCH] delint Signed-off-by: Sylvain Hellegouarch --- controller.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/controller.py b/controller.py index 34da17a..e7804b8 100644 --- a/controller.py +++ b/controller.py @@ -1,6 +1,6 @@ import hashlib import logging -from typing import Any, Dict, List, Union, Optional +from typing import Any, Dict, List, Union import kopf from kopf._cogs.structs import bodies @@ -30,7 +30,6 @@ async def create_chaos_experiment( # noqa: C901 """ v1 = client.CoreV1Api() v1rbac = client.RbacAuthorizationV1Api() - v1policy = client.PolicyV1beta1Api() v1cron = client.BatchV1Api() name_suffix = generate_name_suffix(body) diff --git a/pyproject.toml b/pyproject.toml index 22b07c4..9e579ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ docstring-code-format = false [tool.pdm.scripts] lint = {composite = ["ruff check controller.py"]} -format = {composite = ["ruff format controller.py"]} +format = {composite = ["ruff format controller.py", "ruff check --fix controller.py"]} test = {cmd = "pytest"} [tool.pytest.ini_options]