From 453d15d3042680996e00aabd821bc209c06067ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:49:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- battDB/forms.py | 3 +-- dfndb/forms.py | 3 +-- parsing_engines/parsing_engines_base.py | 7 +++++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/battDB/forms.py b/battDB/forms.py index f4042550..7e103b67 100644 --- a/battDB/forms.py +++ b/battDB/forms.py @@ -58,8 +58,7 @@ class Meta: help_texts = { "device_type": "Is this a cell or a module?", "parent": ( - "Leave blank unless this cell is a part of " - "a particular module or pack" + "Leave blank unless this cell is a part of a particular module or pack" ), } diff --git a/dfndb/forms.py b/dfndb/forms.py index 9ef8cf52..c25ca717 100644 --- a/dfndb/forms.py +++ b/dfndb/forms.py @@ -121,8 +121,7 @@ class meta: can_delete=True, help_texts={ "compound": mark_safe( - ' ' - "new compound ⧉" + ' new compound ⧉' ) }, ) diff --git a/parsing_engines/parsing_engines_base.py b/parsing_engines/parsing_engines_base.py index a84d05e3..a7de026b 100644 --- a/parsing_engines/parsing_engines_base.py +++ b/parsing_engines/parsing_engines_base.py @@ -69,14 +69,17 @@ def _drop_unnamed_columns(self) -> None: self.data = self.data.loc[:, cols] def get_column_info(self) -> dict: - """Gathers some metadata for each column. + ( + """Gathers some metadata for each column. In particular, it gathers if it is a numeric column and if it has data. Returns: A nested dictionary with the above information for each column, proved as keys 'is_numeric' and 'has_data. - """ "" + """ + "" + ) return { k: { "is_numeric": is_numeric_dtype(self.data[k].dtype),