From bb2bde5ecd2f1ab23c78f8bf642d56c5bbb4f8ac Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 31 Aug 2025 20:01:31 -0500 Subject: [PATCH] fix: fix 'too-many-instance-attributes' for pylint --- .pylintrc | 1 + src/wuttaweb/forms/base.py | 2 +- src/wuttaweb/grids/base.py | 4 ++-- src/wuttaweb/grids/filters.py | 2 +- src/wuttaweb/progress.py | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.pylintrc b/.pylintrc index 6b76a79..0229101 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,3 +4,4 @@ disable=all enable= inconsistent-return-statements, + too-many-instance-attributes, diff --git a/src/wuttaweb/forms/base.py b/src/wuttaweb/forms/base.py index 4b03f59..84ab97c 100644 --- a/src/wuttaweb/forms/base.py +++ b/src/wuttaweb/forms/base.py @@ -42,7 +42,7 @@ from wuttaweb.util import FieldList, get_form_data, get_model_fields, make_json_ log = logging.getLogger(__name__) -class Form: +class Form: # pylint: disable=too-many-instance-attributes """ Base class for all forms. diff --git a/src/wuttaweb/grids/base.py b/src/wuttaweb/grids/base.py index 8a06af0..ffd6891 100644 --- a/src/wuttaweb/grids/base.py +++ b/src/wuttaweb/grids/base.py @@ -56,7 +56,7 @@ Elements of :attr:`~Grid.sort_defaults` will be of this type. """ -class Grid: +class Grid: # pylint: disable=too-many-instance-attributes """ Base class for all :term:`grids `. @@ -2443,7 +2443,7 @@ class Grid: } -class GridAction: +class GridAction: # pylint: disable=too-many-instance-attributes """ Represents a "row action" hyperlink within a grid context. diff --git a/src/wuttaweb/grids/filters.py b/src/wuttaweb/grids/filters.py index 2d7a2e7..9518736 100644 --- a/src/wuttaweb/grids/filters.py +++ b/src/wuttaweb/grids/filters.py @@ -52,7 +52,7 @@ class VerbNotSupported(Exception): return f"unknown filter verb not supported: {self.verb}" -class GridFilter: +class GridFilter: # pylint: disable=too-many-instance-attributes """ Filter option for a grid. Represents both the "features" as well as "state" for the filter. diff --git a/src/wuttaweb/progress.py b/src/wuttaweb/progress.py index 616cb44..8f75c30 100644 --- a/src/wuttaweb/progress.py +++ b/src/wuttaweb/progress.py @@ -2,7 +2,7 @@ ################################################################################ # # wuttaweb -- Web App for Wutta Framework -# Copyright © 2024 Lance Edgar +# Copyright © 2024-2025 Lance Edgar # # This file is part of Wutta Framework. # @@ -45,7 +45,7 @@ def get_progress_session(request, key, **kwargs): return get_basic_session(request, **kwargs) -class SessionProgress(ProgressBase): +class SessionProgress(ProgressBase): # pylint: disable=too-many-instance-attributes """ Progress indicator which uses Beaker session storage to track current status.