From da149e932d0914ab499e9be3dc5d8ef562e3e9d6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 30 Aug 2025 20:23:08 -0500 Subject: [PATCH] fix: fix 'no-self-argument' for pylint --- .pylintrc | 1 + src/wuttjamaican/db/model/batch.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.pylintrc b/.pylintrc index d8faf70..184da3d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -21,6 +21,7 @@ enable=anomalous-backslash-in-string, missing-function-docstring, missing-module-docstring, no-else-return, + no-self-argument, redefined-argument-from-local, too-few-public-methods, trailing-whitespace, diff --git a/src/wuttjamaican/db/model/batch.py b/src/wuttjamaican/db/model/batch.py index 7bfa006..0a24c8d 100644 --- a/src/wuttjamaican/db/model/batch.py +++ b/src/wuttjamaican/db/model/batch.py @@ -186,7 +186,7 @@ class BatchMixin: """ @declared_attr - def __table_args__(cls): + def __table_args__(cls): # pylint: disable=no-self-argument return cls.__default_table_args__() @classmethod @@ -201,7 +201,7 @@ class BatchMixin: ) @declared_attr - def batch_type(cls): # pylint: disable=empty-docstring + def batch_type(cls): # pylint: disable=empty-docstring,no-self-argument """ """ return cls.__tablename__ @@ -228,7 +228,7 @@ class BatchMixin: created_by_uuid = sa.Column(UUID(), nullable=False) @declared_attr - def created_by(cls): # pylint: disable=empty-docstring + def created_by(cls): # pylint: disable=empty-docstring,no-self-argument """ """ return orm.relationship( User, @@ -241,7 +241,7 @@ class BatchMixin: executed_by_uuid = sa.Column(UUID(), nullable=True) @declared_attr - def executed_by(cls): # pylint: disable=empty-docstring + def executed_by(cls): # pylint: disable=empty-docstring,no-self-argument """ """ return orm.relationship( User, @@ -381,7 +381,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods uuid = uuid_column() @declared_attr - def __table_args__(cls): + def __table_args__(cls): # pylint: disable=no-self-argument return cls.__default_table_args__() @classmethod @@ -398,7 +398,7 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods batch_uuid = sa.Column(UUID(), nullable=False) @declared_attr - def batch(cls): # pylint: disable=empty-docstring + def batch(cls): # pylint: disable=empty-docstring,no-self-argument """ """ batch_class = cls.__batch_class__ row_class = cls