refactor(treewide): formatting and ruff fixes, + manually enabled F401

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang
2024-03-27 11:37:26 +05:30
parent 8afb7790de
commit 3effaf21ef
574 changed files with 4135 additions and 6276 deletions

View File

@@ -8,7 +8,7 @@ from frappe import _, qb
from frappe.query_builder import Criterion
class PaymentLedger(object):
class PaymentLedger:
def __init__(self, filters=None):
self.filters = filters
self.columns, self.data = [], []

View File

@@ -1,5 +1,3 @@
import unittest
import frappe
from frappe import qb
from frappe.tests.utils import FrappeTestCase
@@ -57,7 +55,7 @@ class TestPaymentLedger(FrappeTestCase):
income_account=self.income_account,
warehouse=self.warehouse,
)
pe = get_payment_entry(sinv.doctype, sinv.name).save().submit()
get_payment_entry(sinv.doctype, sinv.name).save().submit()
filters = frappe._dict({"company": self.company})
columns, data = execute(filters=filters)