mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 15:47:06 +00:00
chore: Clean up imports (#27302)
* chore: Added isort to pre-commit config * chore: Sort imports with isort * chore: Clean up imports with pycln * chore: Sort imports with isort * chore: Fix import issues * chore: Clean up sider issues * chore: Remove import errors from flake8 ignore list * chore: Clean up lint issues
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def enable_hub():
|
||||
hub_settings = frappe.get_doc('Marketplace Settings')
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
import json
|
||||
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.frappeclient import FrappeClient
|
||||
from frappe.desk.form.load import get_attachments
|
||||
from frappe.frappeclient import FrappeClient
|
||||
from six import string_types
|
||||
|
||||
current_user = frappe.session.user
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class HubTrackedItem(Document):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
import unittest
|
||||
|
||||
|
||||
class TestHubTrackedItem(unittest.TestCase):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class HubUser(Document):
|
||||
pass
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class HubUsers(Document):
|
||||
pass
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe, requests, json, time
|
||||
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import add_years, now, get_datetime, get_datetime_str, cint
|
||||
from frappe import _
|
||||
import json
|
||||
|
||||
import frappe
|
||||
from frappe.frappeclient import FrappeClient
|
||||
from erpnext.utilities.product import get_price, get_qty_in_stock
|
||||
from six import string_types
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import cint
|
||||
|
||||
|
||||
class MarketplaceSettings(Document):
|
||||
|
||||
@@ -83,7 +83,6 @@ class MarketplaceSettings(Document):
|
||||
|
||||
def unregister(self):
|
||||
"""Disable the User on hubmarket.org"""
|
||||
pass
|
||||
|
||||
@frappe.whitelist()
|
||||
def is_marketplace_enabled():
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
import unittest
|
||||
|
||||
|
||||
class TestMarketplaceSettings(unittest.TestCase):
|
||||
pass
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe, json
|
||||
from frappe.utils import nowdate
|
||||
from frappe.frappeclient import FrappeClient
|
||||
from frappe.utils.nestedset import get_root_of
|
||||
|
||||
import json
|
||||
|
||||
import frappe
|
||||
from frappe.contacts.doctype.contact.contact import get_default_contact
|
||||
from frappe.frappeclient import FrappeClient
|
||||
from frappe.utils import nowdate
|
||||
from frappe.utils.nestedset import get_root_of
|
||||
|
||||
|
||||
def get_list(doctype, start, limit, fields, filters, order_by):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user