ci: removed isort
This commit is contained in:
@@ -46,12 +46,6 @@ repos:
|
||||
lms/public/js/lib/.*
|
||||
)$
|
||||
|
||||
|
||||
- repo: https://github.com/timothycrosley/isort
|
||||
rev: 5.9.1
|
||||
hooks:
|
||||
- id: isort
|
||||
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.9.2
|
||||
hooks:
|
||||
|
||||
@@ -5,7 +5,9 @@ import unittest
|
||||
import frappe
|
||||
|
||||
from lms.lms.doctype.invite_request.invite_request import (
|
||||
create_invite_request, update_invite)
|
||||
create_invite_request,
|
||||
update_invite,
|
||||
)
|
||||
|
||||
|
||||
class TestInviteRequest(unittest.TestCase):
|
||||
|
||||
@@ -5,8 +5,7 @@ import frappe
|
||||
from frappe import _
|
||||
from frappe.model.document import Document
|
||||
|
||||
from lms.lms.doctype.lms_batch_membership.lms_batch_membership import \
|
||||
create_membership
|
||||
from lms.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership
|
||||
from lms.lms.utils import is_mentor
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
"""Handy module to make access to all doctypes from a single place.
|
||||
"""
|
||||
from .doctype.lms_batch_membership.lms_batch_membership import \
|
||||
LMSBatchMembership as Membership
|
||||
from .doctype.lms_batch_membership.lms_batch_membership import (
|
||||
LMSBatchMembership as Membership,
|
||||
)
|
||||
from .doctype.lms_course.lms_course import LMSCourse as Course
|
||||
|
||||
@@ -4,10 +4,17 @@ import string
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.desk.doctype.dashboard_chart.dashboard_chart import get_result
|
||||
from frappe.desk.doctype.notification_log.notification_log import \
|
||||
make_notification_logs
|
||||
from frappe.utils import (add_months, cint, cstr, flt, fmt_money, format_date,
|
||||
get_datetime, getdate)
|
||||
from frappe.desk.doctype.notification_log.notification_log import make_notification_logs
|
||||
from frappe.utils import (
|
||||
add_months,
|
||||
cint,
|
||||
cstr,
|
||||
flt,
|
||||
fmt_money,
|
||||
format_date,
|
||||
get_datetime,
|
||||
getdate,
|
||||
)
|
||||
from frappe.utils.dateutils import get_period
|
||||
|
||||
from lms.lms.md import find_macros, markdown_to_html
|
||||
|
||||
@@ -2,8 +2,7 @@ import frappe
|
||||
from frappe import _
|
||||
from frappe.utils import cstr, flt
|
||||
|
||||
from lms.lms.utils import (get_lesson_url, has_course_moderator_role,
|
||||
is_instructor)
|
||||
from lms.lms.utils import get_lesson_url, has_course_moderator_role, is_instructor
|
||||
from lms.www.utils import get_common_context, redirect_to_lesson
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
from lms.lms.utils import (can_create_courses, get_evaluation_details,
|
||||
get_membership, has_course_moderator_role,
|
||||
is_certified, is_instructor,
|
||||
redirect_to_courses_list)
|
||||
from lms.lms.utils import (
|
||||
can_create_courses,
|
||||
get_evaluation_details,
|
||||
get_membership,
|
||||
has_course_moderator_role,
|
||||
is_certified,
|
||||
is_instructor,
|
||||
redirect_to_courses_list,
|
||||
)
|
||||
|
||||
|
||||
def get_context(context):
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
from lms.lms.utils import (can_create_courses, check_profile_restriction,
|
||||
get_restriction_details, has_course_moderator_role)
|
||||
from lms.lms.utils import (
|
||||
can_create_courses,
|
||||
check_profile_restriction,
|
||||
get_restriction_details,
|
||||
has_course_moderator_role,
|
||||
)
|
||||
|
||||
|
||||
def get_context(context):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import frappe
|
||||
|
||||
from lms.lms.utils import (get_batch, get_lesson_url, get_lessons,
|
||||
get_membership, slugify)
|
||||
from lms.lms.utils import get_lesson_url, get_lessons, get_membership
|
||||
|
||||
|
||||
def get_common_context(context):
|
||||
|
||||
Reference in New Issue
Block a user