refactor(treewide): formatting and ruff fixes, + manually enabled F401
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
diff --git a/erpnext/stock/__init__.py b/erpnext/stock/__init__.py
index bd16d69..7b58cbb 100644
--- a/erpnext/stock/__init__.py
+++ b/erpnext/stock/__init__.py
@@ -17,9 +17,9 @@
def get_warehouse_account_map(company=None):
- company_warehouse_account_map = company and frappe.flags.setdefault(
- "warehouse_account_map", {}
- ).get(company)
+ company_warehouse_account_map = company and frappe.flags.setdefault("warehouse_account_map", {}).get(
+ company
+ )
warehouse_account_map = frappe.flags.warehouse_account_map
if not warehouse_account_map or not company_warehouse_account_map or frappe.flags.in_test: