Skip to content
Snippets Groups Projects
Commit 297530b1 authored by I. Nüske's avatar I. Nüske
Browse files

MNT: Ignore pylint errors for which issues have been created.

parent a6d5d230
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!126Fix pylint errors
Pipeline #59073 failed
...@@ -251,7 +251,9 @@ class DataModel(dict): ...@@ -251,7 +251,9 @@ class DataModel(dict):
for par in entity.get_parents(): for par in entity.get_parents():
if par.name.lower() == valid_e.name.lower(): if par.name.lower() == valid_e.name.lower():
par._wrap(valid_e) # ToDo: Fix https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools/-/issues/140
# and remove pylint disable, or close and leave
par._wrap(valid_e) # pylint: disable=protected-access
def collect_entities(self): def collect_entities(self):
""" Collects all entities: explicitly defined RecordTypes and """ Collects all entities: explicitly defined RecordTypes and
......
...@@ -748,7 +748,9 @@ class JsonSchemaParser(Parser): ...@@ -748,7 +748,9 @@ class JsonSchemaParser(Parser):
return self._create_model_from_dict(model_dict, top_level_recordtype=top_level_recordtype) return self._create_model_from_dict(model_dict, top_level_recordtype=top_level_recordtype)
def _create_model_from_dict(self, model_dict: [dict, List[dict]], top_level_recordtype: bool = True): # ToDo: Fix https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools/-/issues/139
# and remove pylint disable
def _create_model_from_dict(self, model_dict: [dict, List[dict]], top_level_recordtype: bool = True): # pylint: disable=arguments-renamed
"""Parse a dictionary and return the Datamodel created from it. """Parse a dictionary and return the Datamodel created from it.
The dictionary was typically created from the model definition in a json schema file. The dictionary was typically created from the model definition in a json schema file.
......
...@@ -628,8 +628,10 @@ def _set_in_nested(mydict: dict, path: list, value: Any, prefix: list = [], skip ...@@ -628,8 +628,10 @@ def _set_in_nested(mydict: dict, path: list, value: Any, prefix: list = [], skip
return mydict return mydict
# ToDo: Fix https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools/-/issues/138
# and remove pylint disable
def to_dict(xlsx: Union[str, BinaryIO], schema: Union[dict, str, TextIO], def to_dict(xlsx: Union[str, BinaryIO], schema: Union[dict, str, TextIO],
validate: bool = None, strict: bool = False) -> dict: validate: bool = None, strict: bool = False) -> dict: # pylint: disable=unused-argument
"""Convert the xlsx contents to a dict, it must follow a schema. """Convert the xlsx contents to a dict, it must follow a schema.
Parameters Parameters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment