summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-12 22:25:21 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-12 22:25:21 -0400
commitdd2208cdf496a548830f3e8374390b87be943ba2 (patch)
tree1c3298d4b2c9eb4fc788afc409c612e31f14541e
parentdbf17903c8fee719f88c8fb216efed3a375d2f44 (diff)
downloadpypaste-dd2208cdf496a548830f3e8374390b87be943ba2.tar.gz
fix lints
-rw-r--r--pypaste/client/__init__.py2
-rw-r--r--pypaste/client/__main__.py4
-rw-r--r--pypaste/client/plugins/__init__.py2
-rw-r--r--pypaste/client/plugins/pgz/__init__.py3
-rw-r--r--pypaste/server/__init__.py1
-rw-r--r--pypaste/server/s3/__init__.py1
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 <https://www.gnu.org/licenses/>.
-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