Use full names for common.djangoapps imports; warn when using old style (#25477)
* Generate common/djangoapps import shims for LMS * Generate common/djangoapps import shims for Studio * Stop appending project root to sys.path * Stop appending common/djangoapps to sys.path * Import from common.djangoapps.course_action_state instead of course_action_state * Import from common.djangoapps.course_modes instead of course_modes * Import from common.djangoapps.database_fixups instead of database_fixups * Import from common.djangoapps.edxmako instead of edxmako * Import from common.djangoapps.entitlements instead of entitlements * Import from common.djangoapps.pipline_mako instead of pipeline_mako * Import from common.djangoapps.static_replace instead of static_replace * Import from common.djangoapps.student instead of student * Import from common.djangoapps.terrain instead of terrain * Import from common.djangoapps.third_party_auth instead of third_party_auth * Import from common.djangoapps.track instead of track * Import from common.djangoapps.util instead of util * Import from common.djangoapps.xblock_django instead of xblock_django * Add empty common/djangoapps/__init__.py to fix pytest collection * Fix pylint formatting violations * Exclude import_shims/ directory tree from linting
Showing
- cms/devstack.yml 9 additions, 9 deletionscms/devstack.yml
- cms/djangoapps/api/v1/serializers/course_runs.py 1 addition, 1 deletioncms/djangoapps/api/v1/serializers/course_runs.py
- cms/djangoapps/api/v1/tests/test_serializers/test_course_runs.py 2 additions, 2 deletions...ngoapps/api/v1/tests/test_serializers/test_course_runs.py
- cms/djangoapps/api/v1/tests/test_views/test_course_runs.py 3 additions, 3 deletionscms/djangoapps/api/v1/tests/test_views/test_course_runs.py
- cms/djangoapps/cms_user_tasks/tasks.py 1 addition, 1 deletioncms/djangoapps/cms_user_tasks/tasks.py
- cms/djangoapps/contentstore/api/tests/base.py 1 addition, 1 deletioncms/djangoapps/contentstore/api/tests/base.py
- cms/djangoapps/contentstore/api/tests/test_import.py 1 addition, 1 deletioncms/djangoapps/contentstore/api/tests/test_import.py
- cms/djangoapps/contentstore/api/tests/test_validation.py 1 addition, 1 deletioncms/djangoapps/contentstore/api/tests/test_validation.py
- cms/djangoapps/contentstore/api/views/utils.py 1 addition, 1 deletioncms/djangoapps/contentstore/api/views/utils.py
- cms/djangoapps/contentstore/course_group_config.py 1 addition, 1 deletioncms/djangoapps/contentstore/course_group_config.py
- cms/djangoapps/contentstore/courseware_index.py 1 addition, 1 deletioncms/djangoapps/contentstore/courseware_index.py
- cms/djangoapps/contentstore/management/commands/tests/test_delete_course.py 2 additions, 2 deletions...tentstore/management/commands/tests/test_delete_course.py
- cms/djangoapps/contentstore/management/commands/tests/test_sync_courses.py 1 addition, 1 deletion...ntentstore/management/commands/tests/test_sync_courses.py
- cms/djangoapps/contentstore/rest_api/v1/tests/test_views.py 1 addition, 1 deletioncms/djangoapps/contentstore/rest_api/v1/tests/test_views.py
- cms/djangoapps/contentstore/signals/handlers.py 2 additions, 2 deletionscms/djangoapps/contentstore/signals/handlers.py
- cms/djangoapps/contentstore/tasks.py 3 additions, 3 deletionscms/djangoapps/contentstore/tasks.py
- cms/djangoapps/contentstore/tests/test_clone_course.py 3 additions, 3 deletionscms/djangoapps/contentstore/tests/test_clone_course.py
- cms/djangoapps/contentstore/tests/test_contentstore.py 5 additions, 5 deletionscms/djangoapps/contentstore/tests/test_contentstore.py
- cms/djangoapps/contentstore/tests/test_course_create_rerun.py 3 additions, 3 deletions...djangoapps/contentstore/tests/test_course_create_rerun.py
- cms/djangoapps/contentstore/tests/test_course_listing.py 3 additions, 3 deletionscms/djangoapps/contentstore/tests/test_course_listing.py
Please register or sign in to comment