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