refactor: switch to relative imports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""Authentication module for Skywipe"""
|
||||
|
||||
from atproto import Client
|
||||
from skywipe.configure import Configuration
|
||||
from .configure import Configuration
|
||||
|
||||
|
||||
class Auth:
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import sys
|
||||
import argparse
|
||||
|
||||
from skywipe.commands import registry
|
||||
from skywipe.configure import Configuration
|
||||
from .commands import registry
|
||||
from .configure import Configuration
|
||||
|
||||
|
||||
def create_parser():
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
"""Command implementations for Skywipe"""
|
||||
|
||||
from typing import Callable, Dict, Optional
|
||||
from skywipe.configure import Configuration
|
||||
from skywipe.posts import delete_posts
|
||||
from skywipe.medias import delete_posts_with_medias
|
||||
from skywipe.likes import undo_likes
|
||||
from .configure import Configuration
|
||||
from .posts import delete_posts
|
||||
from .medias import delete_posts_with_medias
|
||||
from .likes import undo_likes
|
||||
|
||||
|
||||
CommandHandler = Callable[[], None]
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import time
|
||||
from atproto import models
|
||||
from skywipe.auth import Auth
|
||||
from skywipe.configure import Configuration
|
||||
from .auth import Auth
|
||||
from .configure import Configuration
|
||||
|
||||
|
||||
LIKE_COLLECTION = "app.bsky.feed.like"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Media post deletion module for Skywipe"""
|
||||
|
||||
import time
|
||||
from skywipe.auth import Auth
|
||||
from skywipe.configure import Configuration
|
||||
from .auth import Auth
|
||||
from .configure import Configuration
|
||||
|
||||
|
||||
def has_media_embed(post_record):
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Post deletion module for Skywipe"""
|
||||
|
||||
import time
|
||||
from skywipe.auth import Auth
|
||||
from skywipe.configure import Configuration
|
||||
from .auth import Auth
|
||||
from .configure import Configuration
|
||||
|
||||
|
||||
def delete_posts():
|
||||
|
||||
Reference in New Issue
Block a user