From dd2208cdf496a548830f3e8374390b87be943ba2 Mon Sep 17 00:00:00 2001 From: John Turner Date: Fri, 12 Sep 2025 22:25:21 -0400 Subject: fix lints --- pypaste/client/__init__.py | 2 +- pypaste/client/__main__.py | 4 ---- pypaste/client/plugins/__init__.py | 2 -- pypaste/client/plugins/pgz/__init__.py | 3 +-- pypaste/server/__init__.py | 1 - pypaste/server/s3/__init__.py | 1 - 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pypaste/client/__init__.py b/pypaste/client/__init__.py index 06b9100..28582ac 100644 --- a/pypaste/client/__init__.py +++ b/pypaste/client/__init__.py @@ -1,5 +1,5 @@ import io -from typing import Protocol, List, Optional, runtime_checkable +from typing import Protocol, List, Optional class PasteService(Protocol): diff --git a/pypaste/client/__main__.py b/pypaste/client/__main__.py index 0da86d8..dc6172a 100644 --- a/pypaste/client/__main__.py +++ b/pypaste/client/__main__.py @@ -1,12 +1,8 @@ import sys -import io import pkgutil import pypaste.client.plugins as plugins -from pypaste.client import PasteService from importlib import import_module from argparse import ArgumentParser -from pypaste import log_error -from typing import Dict def register_services(): diff --git a/pypaste/client/plugins/__init__.py b/pypaste/client/plugins/__init__.py index 018b673..79e9d50 100644 --- a/pypaste/client/plugins/__init__.py +++ b/pypaste/client/plugins/__init__.py @@ -1,5 +1,3 @@ -from pypaste.client import PasteService - services = {} diff --git a/pypaste/client/plugins/pgz/__init__.py b/pypaste/client/plugins/pgz/__init__.py index a916c19..fd7720c 100644 --- a/pypaste/client/plugins/pgz/__init__.py +++ b/pypaste/client/plugins/pgz/__init__.py @@ -1,11 +1,11 @@ import io import requests -from pypaste.client import PasteService from pypaste.client.plugins import register_service from typing import Optional, List URL: str = "https://paste.gentoo.zip" + @register_service("pgz") class Pgz: @@ -19,6 +19,5 @@ class Pgz: return req.text.strip() - def supported_syntaxes(self) -> List[str]: return [] diff --git a/pypaste/server/__init__.py b/pypaste/server/__init__.py index ad07ecd..5d6db32 100644 --- a/pypaste/server/__init__.py +++ b/pypaste/server/__init__.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys import asyncio import secrets import aiosqlite diff --git a/pypaste/server/s3/__init__.py b/pypaste/server/s3/__init__.py index 07e2580..d2cf7b2 100644 --- a/pypaste/server/s3/__init__.py +++ b/pypaste/server/s3/__init__.py @@ -15,7 +15,6 @@ import asyncio import zstandard -import asyncio import aiosqlite from pypaste.server import Storage, Paste from pypaste.server.s3.bucket import Bucket -- cgit v1.2.3