From 3565e5a8908ef466f764654885aa14b08ffc1099 Mon Sep 17 00:00:00 2001 From: Philip Colangelo Date: Mon, 9 Dec 2024 20:40:45 -0500 Subject: [PATCH] update to pylintrc --- .pylintrc | 11 ----------- src/digest/multi_model_selection_page.py | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.pylintrc b/.pylintrc index b831756..efb14e7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -81,7 +81,6 @@ enable = expression-not-assigned, confusing-with-statement, unnecessary-lambda, - assign-to-new-keyword, redeclared-assigned-name, pointless-statement, pointless-string-statement, @@ -123,7 +122,6 @@ enable = invalid-length-returned, protected-access, attribute-defined-outside-init, - no-init, abstract-method, invalid-overridden-method, arguments-differ, @@ -165,9 +163,7 @@ enable = ### format # Line length, indentation, whitespace: bad-indentation, - mixed-indentation, unnecessary-semicolon, - bad-whitespace, missing-final-newline, line-too-long, mixed-line-endings, @@ -187,7 +183,6 @@ enable = import-self, preferred-module, reimported, - relative-import, deprecated-module, wildcard-import, misplaced-future, @@ -282,12 +277,6 @@ indent-string = ' ' # black doesn't always obey its own limit. See pyproject.toml. max-line-length = 100 -# List of optional constructs for which whitespace checking is disabled. `dict- -# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. -# `trailing-comma` allows a space between comma and closing bracket: (a, ). -# `empty-line` allows space-only lines. -no-space-check = - # Allow the body of a class to be on the same line as the declaration if body # contains single statement. single-line-class-stmt = no diff --git a/src/digest/multi_model_selection_page.py b/src/digest/multi_model_selection_page.py index 4c16bf4..42863a1 100644 --- a/src/digest/multi_model_selection_page.py +++ b/src/digest/multi_model_selection_page.py @@ -217,8 +217,8 @@ def set_directory(self, directory: str): models_loaded += 1 model = onnx.load(filepath, load_external_data=False) dialog_msg = ( - f"Warning: System RAM has exceeded the threshold of {memory_limit_percentage}%. " - "No further models will be loaded. " + "Warning: System RAM has exceeded the threshold of " + f"{memory_limit_percentage}%. No further models will be loaded. " ) if prompt_user_ram_limit( sys_ram_percent_limit=memory_limit_percentage,