3
0
Fork 0

fix: fix 'empty-docstring' for pylint

This commit is contained in:
Lance Edgar 2025-08-31 20:41:53 -05:00
parent fdeb0eeeb2
commit 8b905289de
22 changed files with 157 additions and 139 deletions

View file

@ -121,7 +121,7 @@ class BatchMasterView(MasterView):
return super().render_to_response(template, context)
def configure_grid(self, g):
def configure_grid(self, g): # pylint: disable=empty-docstring
""" """
super().configure_grid(g)
model = self.app.model
@ -144,20 +144,20 @@ class BatchMasterView(MasterView):
# description
g.set_link("description")
def render_batch_id(self, batch, key, value):
def render_batch_id(self, batch, key, value): # pylint: disable=empty-docstring
""" """
if value:
batch_id = int(value)
return f"{batch_id:08d}"
return None
def get_instance_title(self, batch):
def get_instance_title(self, batch): # pylint: disable=empty-docstring
""" """
if batch.description:
return f"{batch.id_str} {batch.description}"
return batch.id_str
def configure_form(self, f): # pylint: disable=too-many-branches
def configure_form(self, f): # pylint: disable=too-many-branches,empty-docstring
""" """
super().configure_form(f)
batch = f.model_instance
@ -378,7 +378,7 @@ class BatchMasterView(MasterView):
##############################
@classmethod
def get_row_model_class(cls):
def get_row_model_class(cls): # pylint: disable=empty-docstring
""" """
if hasattr(cls, "row_model_class"):
return cls.row_model_class
@ -396,7 +396,7 @@ class BatchMasterView(MasterView):
query = self.Session.query(BatchRow).filter(BatchRow.batch == batch)
return query
def configure_row_grid(self, g):
def configure_row_grid(self, g): # pylint: disable=empty-docstring
""" """
super().configure_row_grid(g)
@ -404,7 +404,7 @@ class BatchMasterView(MasterView):
g.set_renderer("status_code", self.render_row_status)
def render_row_status(self, row, key, value):
def render_row_status(self, row, key, value): # pylint: disable=empty-docstring
""" """
return row.STATUS.get(value, value)
@ -413,7 +413,7 @@ class BatchMasterView(MasterView):
##############################
@classmethod
def defaults(cls, config):
def defaults(cls, config): # pylint: disable=empty-docstring
""" """
cls._defaults(config)
cls._batch_defaults(config)