Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

chore: Fix imports. #743

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tubular/scripts/get_learners_to_retire.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
import click
import yaml

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))

from tubular.edx_api import LmsApi # pylint: disable=wrong-import-position
from tubular.jenkins import export_learner_job_properties # pylint: disable=wrong-import-position
from tubular.utils.deprecation import deprecated_script

logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
LOG = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions tubular/scripts/replace_usernames.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
import click
import yaml

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))

from tubular.edx_api import CredentialsApi, DiscoveryApi, EcommerceApi, LmsApi # pylint: disable=wrong-import-position
from tubular.utils.deprecation import deprecated_script

logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
LOG = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions tubular/scripts/retire_one_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@

import click

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))

Expand All @@ -45,6 +43,7 @@
_log,
_setup_all_apis_or_exit
)
from tubular.utils.deprecation import deprecated_script

# Return codes for various fail cases
ERR_SETUP_FAILED = -1
Expand Down
3 changes: 1 addition & 2 deletions tubular/scripts/retirement_archive_and_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
from botocore.exceptions import BotoCoreError, ClientError
from six import text_type

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))

# pylint: disable=wrong-import-position
from tubular.scripts.helpers import (
_config_or_exit, _fail, _fail_exception, _log, _setup_lms_api_or_exit
)
from tubular.utils.deprecation import deprecated_script


SCRIPT_SHORTNAME = 'Archive and Cleanup'
Expand Down
3 changes: 1 addition & 2 deletions tubular/scripts/retirement_bulk_status_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import click
from six import text_type

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))

Expand All @@ -26,6 +24,7 @@
_log,
_setup_lms_api_or_exit
)
from tubular.utils.deprecation import deprecated_script


SCRIPT_SHORTNAME = 'Bulk Status'
Expand Down
3 changes: 1 addition & 2 deletions tubular/scripts/retirement_partner_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import click
from six import text_type

from tubular.utils.deprecation import deprecated_script

# Add top-level module path to sys.path before importing tubular code.
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

Expand All @@ -31,6 +29,7 @@
_log,
_setup_lms_api_or_exit
)
from tubular.utils.deprecation import deprecated_script

# Return codes for various fail cases
ERR_SETUP_FAILED = -1
Expand Down
Loading