From 93855e79d1b9d1305beae6fb578f23363fe023c9 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Sep 2025 14:16:37 -0500 Subject: [PATCH] fix: fix 'too-many-arguments' for pylint --- .pylintrc | 2 -- src/sideshow/batch/neworder.py | 4 ++-- src/sideshow/orders.py | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pylintrc b/.pylintrc index 7349811..dc27f05 100644 --- a/.pylintrc +++ b/.pylintrc @@ -23,8 +23,6 @@ disable=fixme, redefined-outer-name, singleton-comparison, too-few-public-methods, - too-many-arguments, too-many-branches, too-many-lines, too-many-locals, - too-many-positional-arguments, diff --git a/src/sideshow/batch/neworder.py b/src/sideshow/batch/neworder.py index 0c6cb8c..e6b2e07 100644 --- a/src/sideshow/batch/neworder.py +++ b/src/sideshow/batch/neworder.py @@ -655,7 +655,7 @@ class NewOrderBatchHandler(BatchHandler): # pylint: disable=too-many-public-met return products - def add_item( + def add_item( # pylint: disable=too-many-arguments,too-many-positional-arguments self, batch, product_info, @@ -766,7 +766,7 @@ class NewOrderBatchHandler(BatchHandler): # pylint: disable=too-many-public-met session.flush() return row - def update_item( + def update_item( # pylint: disable=too-many-arguments,too-many-positional-arguments self, row, product_info, order_qty, order_uom, discount_percent=None, user=None ): """ diff --git a/src/sideshow/orders.py b/src/sideshow/orders.py index b0e639e..42ed77d 100644 --- a/src/sideshow/orders.py +++ b/src/sideshow/orders.py @@ -183,7 +183,7 @@ class OrderHandler(GenericHandler): if note: item.add_event(enum.ORDER_ITEM_EVENT_NOTE_ADDED, user, note=note) - def process_placement( + def process_placement( # pylint: disable=too-many-arguments,too-many-positional-arguments self, items, user, vendor_name=None, po_number=None, note=None ): """ @@ -226,7 +226,7 @@ class OrderHandler(GenericHandler): item.add_event(enum.ORDER_ITEM_EVENT_NOTE_ADDED, user, note=note) item.status_code = enum.ORDER_ITEM_STATUS_PLACED - def process_receiving( + def process_receiving( # pylint: disable=too-many-arguments,too-many-positional-arguments self, items, user,