diff --git a/.pylintrc b/.pylintrc index 642d985..bea7a43 100644 --- a/.pylintrc +++ b/.pylintrc @@ -18,6 +18,7 @@ enable=anomalous-backslash-in-string, inconsistent-return-statements, invalid-name, line-too-long, + missing-function-docstring, no-else-return, redefined-argument-from-local, too-few-public-methods, diff --git a/src/wuttjamaican/db/model/batch.py b/src/wuttjamaican/db/model/batch.py index 017a549..7bfa006 100644 --- a/src/wuttjamaican/db/model/batch.py +++ b/src/wuttjamaican/db/model/batch.py @@ -201,7 +201,8 @@ class BatchMixin: ) @declared_attr - def batch_type(cls): + def batch_type(cls): # pylint: disable=empty-docstring + """ """ return cls.__tablename__ uuid = uuid_column() @@ -227,7 +228,8 @@ class BatchMixin: created_by_uuid = sa.Column(UUID(), nullable=False) @declared_attr - def created_by(cls): + def created_by(cls): # pylint: disable=empty-docstring + """ """ return orm.relationship( User, primaryjoin=lambda: User.uuid == cls.created_by_uuid, @@ -239,7 +241,8 @@ class BatchMixin: executed_by_uuid = sa.Column(UUID(), nullable=True) @declared_attr - def executed_by(cls): + def executed_by(cls): # pylint: disable=empty-docstring + """ """ return orm.relationship( User, primaryjoin=lambda: User.uuid == cls.executed_by_uuid, @@ -395,7 +398,8 @@ class BatchRowMixin: # pylint: disable=too-few-public-methods batch_uuid = sa.Column(UUID(), nullable=False) @declared_attr - def batch(cls): + def batch(cls): # pylint: disable=empty-docstring + """ """ batch_class = cls.__batch_class__ row_class = cls batch_class.__row_class__ = row_class diff --git a/src/wuttjamaican/install.py b/src/wuttjamaican/install.py index 0806b76..61be2d3 100644 --- a/src/wuttjamaican/install.py +++ b/src/wuttjamaican/install.py @@ -229,7 +229,8 @@ class InstallHandler(GenericHandler): return dbinfo - def make_db_url(self, dbtype, dbhost, dbport, dbname, dbuser, dbpass): + def make_db_url(self, dbtype, dbhost, dbport, dbname, dbuser, dbpass): # pylint: disable=empty-docstring + """ """ from sqlalchemy.engine import URL if dbtype == 'mysql': @@ -244,7 +245,8 @@ class InstallHandler(GenericHandler): port=dbport, database=dbname) - def test_db_connection(self, url): + def test_db_connection(self, url): # pylint: disable=empty-docstring + """ """ import sqlalchemy as sa engine = sa.create_engine(url) @@ -470,7 +472,8 @@ class InstallHandler(GenericHandler): # console utility functions ############################## - def require_prompt_toolkit(self, answer=None): + def require_prompt_toolkit(self, answer=None): # pylint: disable=empty-docstring + """ """ try: import prompt_toolkit # pylint: disable=unused-import except ImportError: @@ -492,7 +495,8 @@ class InstallHandler(GenericHandler): """ rich.print(*args, **kwargs) - def get_prompt_style(self): + def get_prompt_style(self): # pylint: disable=empty-docstring + """ """ from prompt_toolkit.styles import Style # message formatting styles