chore: Cleanup imports (#27320)

* chore: Added isort to pre-commit config

* chore: Sort imports with isort

* chore: Remove imports with pycln

* chore: Sort imports with isort

* chore: Fix import issues

* chore: Fix sider issues

* chore: linting

* chore: linting / sorting import

from ecommerce refactor merge

* ci: dont allow unused imports

* chore: sort / clean ecommerce imports

Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
Chillar Anand
2021-09-03 18:57:43 +05:30
committed by GitHub
parent 910b9bc3f4
commit 4b2be2999f
2103 changed files with 7844 additions and 3106 deletions

View File

@@ -2,13 +2,17 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
from six import iteritems
import frappe
from frappe import _, scrub
from frappe.utils import getdate, flt, add_to_date, add_days
from frappe.utils import add_days, add_to_date, flt, getdate
from six import iteritems
from erpnext.accounts.utils import get_fiscal_year
def execute(filters=None):
return IssueAnalytics(filters).run()
@@ -103,7 +107,7 @@ class IssueAnalytics(object):
return period
def get_period_date_ranges(self):
from dateutil.relativedelta import relativedelta, MO
from dateutil.relativedelta import MO, relativedelta
from_date, to_date = getdate(self.filters.from_date), getdate(self.filters.to_date)
increment = {