From db4e73cf3a022991a22b0aee59ab7e497f1c566b Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 22:10:48 -0500 Subject: [PATCH] pylint --- ntclient/services/analyze.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ntclient/services/analyze.py b/ntclient/services/analyze.py index 6c9849c..b1789ce 100644 --- a/ntclient/services/analyze.py +++ b/ntclient/services/analyze.py @@ -37,7 +37,9 @@ from ntclient.utils import CLI_CONFIG ############################################################################## # Foods ############################################################################## -def foods_analyze(food_ids: set, grams: float = 100) -> tuple: +def foods_analyze( # pylint: disable=too-many-locals + food_ids: set, grams: float = 100 +) -> tuple: """ Analyze a list of food_ids against stock RDA values TODO: from ntclient.utils.nutprogbar import nutprogbar @@ -147,7 +149,9 @@ def foods_analyze(food_ids: set, grams: float = 100) -> tuple: ############################################################################## # Day ############################################################################## -def day_analyze(day_csv_paths: Sequence[str], rda_csv_path: str = str()) -> tuple: +def day_analyze( # pylint: disable=too-many-branches,too-many-locals + day_csv_paths: Sequence[str], rda_csv_path: str = str() +) -> tuple: """Analyze a day optionally with custom RDAs, examples: ./nutra day tests/resources/day/human-test.csv @@ -229,7 +233,7 @@ def day_analyze(day_csv_paths: Sequence[str], rda_csv_path: str = str()) -> tupl return 0, nutrients_totals -def day_format( +def day_format( # pylint: disable=too-many-locals analysis: Mapping[int, float], nutrients: Mapping[int, tuple], buffer: int = 0, -- 2.52.0