From b1978cf7dfbedc09f36047477bd2dfb740714987 Mon Sep 17 00:00:00 2001 From: Michael Della Bitta Date: Tue, 25 Jun 2024 16:20:40 -0400 Subject: [PATCH] made imports canonical, suppresses IDE errors. --- wikimedia/entries/download.py | 12 ++++++------ wikimedia/entries/entry.py | 4 ++-- wikimedia/executors/downloader.py | 6 +++--- wikimedia/utilities/emailer.py | 2 +- wikimedia/utilities/iiif.py | 2 +- wikimedia/utilities/tracker.py | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/wikimedia/entries/download.py b/wikimedia/entries/download.py index 0f98ad9..f10ea2c 100644 --- a/wikimedia/entries/download.py +++ b/wikimedia/entries/download.py @@ -9,12 +9,12 @@ from pathlib import Path import pandas as pd -from entries.entry import Entry -from executors.downloader import Downloader -from utilities.exceptions import DownloadException, IIIFException -from utilities.helpers import S3Helper, Text, InputHelper -from utilities.iiif import IIIF -from utilities.tracker import Result, Tracker +from wikimedia.entries.entry import Entry +from wikimedia.executors.downloader import Downloader +from wikimedia.utilities.exceptions import DownloadException, IIIFException +from wikimedia.utilities.helpers import S3Helper, Text, InputHelper +from wikimedia.utilities.iiif import IIIF +from wikimedia.utilities.tracker import Result, Tracker class DownloadEntry(Entry): diff --git a/wikimedia/entries/entry.py b/wikimedia/entries/entry.py index a5b0bd9..3bdd018 100644 --- a/wikimedia/entries/entry.py +++ b/wikimedia/entries/entry.py @@ -1,5 +1,5 @@ -from utilities.helpers import ParquetHelper -from utilities.tracker import Tracker +from wikimedia.utilities.helpers import ParquetHelper +from wikimedia.utilities.tracker import Tracker class Entry: diff --git a/wikimedia/executors/downloader.py b/wikimedia/executors/downloader.py index 347b675..5f0dbc3 100644 --- a/wikimedia/executors/downloader.py +++ b/wikimedia/executors/downloader.py @@ -9,9 +9,9 @@ import magic import requests -from utilities.exceptions import DownloadException -from utilities.helpers import S3Helper -from utilities.tracker import Result, Tracker +from wikimedia.utilities.exceptions import DownloadException +from wikimedia.utilities.helpers import S3Helper +from wikimedia.utilities.tracker import Result, Tracker class Downloader: diff --git a/wikimedia/utilities/emailer.py b/wikimedia/utilities/emailer.py index 5f680f5..d4f103c 100644 --- a/wikimedia/utilities/emailer.py +++ b/wikimedia/utilities/emailer.py @@ -2,7 +2,7 @@ """ from botocore.exceptions import ClientError -from utilities.helpers import Text +from wikimedia.utilities.helpers import Text class Summary: diff --git a/wikimedia/utilities/iiif.py b/wikimedia/utilities/iiif.py index 5e9bca9..1ec2b3e 100644 --- a/wikimedia/utilities/iiif.py +++ b/wikimedia/utilities/iiif.py @@ -6,7 +6,7 @@ import requests import validators -from utilities.exceptions import IIIFException +from wikimedia.utilities.exceptions import IIIFException class IIIF: diff --git a/wikimedia/utilities/tracker.py b/wikimedia/utilities/tracker.py index 56aff9f..2796eb1 100644 --- a/wikimedia/utilities/tracker.py +++ b/wikimedia/utilities/tracker.py @@ -1,4 +1,4 @@ -from utilities.exceptions import WikiException +from wikimedia.utilities.exceptions import WikiException from enum import Enum