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

Commit

Permalink
chore: Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanJaveed84 committed Mar 11, 2024
1 parent 1b8a6cb commit 3abd194
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
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

0 comments on commit 3abd194

Please sign in to comment.