mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-23 16:48:30 +00:00
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:
2
.github/helper/.flake8_strict
vendored
2
.github/helper/.flake8_strict
vendored
@@ -44,7 +44,6 @@ ignore =
|
||||
E303,
|
||||
E305,
|
||||
E306,
|
||||
E401,
|
||||
E402,
|
||||
E501,
|
||||
E502,
|
||||
@@ -52,7 +51,6 @@ ignore =
|
||||
E702,
|
||||
E703,
|
||||
E741,
|
||||
F401,
|
||||
F403,
|
||||
W191,
|
||||
W291,
|
||||
|
||||
2
.github/helper/documentation.py
vendored
2
.github/helper/documentation.py
vendored
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
import requests
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import requests
|
||||
|
||||
docs_repos = [
|
||||
"frappe_docs",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import frappe
|
||||
from frappe import _, flt
|
||||
|
||||
from frappe import _
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
|
||||
1
.github/helper/semgrep_rules/report.py
vendored
1
.github/helper/semgrep_rules/report.py
vendored
@@ -1,6 +1,5 @@
|
||||
from frappe import _
|
||||
|
||||
|
||||
# ruleid: frappe-missing-translate-function-in-report-python
|
||||
{"label": "Field Label"}
|
||||
|
||||
|
||||
3
.github/helper/semgrep_rules/ux.py
vendored
3
.github/helper/semgrep_rules/ux.py
vendored
@@ -1,6 +1,5 @@
|
||||
import frappe
|
||||
from frappe import msgprint, throw, _
|
||||
|
||||
from frappe import _, msgprint, throw
|
||||
|
||||
# ruleid: frappe-missing-translate-function-python
|
||||
throw("Error Occured")
|
||||
|
||||
Reference in New Issue
Block a user