From 59984c6d069d99e1d0958ea47b352997bc873330 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 01:14:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- WrightTools/__main__.py | 14 ++++---------- WrightTools/kit/__init__.py | 1 - WrightTools/kit/_glob.py | 3 +-- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/WrightTools/__main__.py b/WrightTools/__main__.py index 972a017c..656824e6 100644 --- a/WrightTools/__main__.py +++ b/WrightTools/__main__.py @@ -73,16 +73,10 @@ def crawl(directory=None): desc = wt.kit.describe_wt5(path) desc["filesize"] = f"{os.path.getsize(path) / 1e6:.1f}" desc["path"] = str(path.relative_to(directory)) - row = [str(i)] + [str(desc[k]) for k in [ - "path", - "filesize", - "created", - "name", - "shape", - "axes", - "nvars", - "nchan" - ]] + row = [str(i)] + [ + str(desc[k]) + for k in ["path", "filesize", "created", "name", "shape", "axes", "nvars", "nchan"] + ] table.add_row(*row) live.update(table) diff --git a/WrightTools/kit/__init__.py b/WrightTools/kit/__init__.py index 0a2978e9..4144d907 100644 --- a/WrightTools/kit/__init__.py +++ b/WrightTools/kit/__init__.py @@ -14,4 +14,3 @@ from ._unicode import * from ._utilities import * from ._glob import * - diff --git a/WrightTools/kit/_glob.py b/WrightTools/kit/_glob.py index 115cb22a..01cd3206 100644 --- a/WrightTools/kit/_glob.py +++ b/WrightTools/kit/_glob.py @@ -31,7 +31,6 @@ def describe_wt5(path: Union[str, os.PathLike]): return desc -def glob_wt5s(directory: Union[str,os.PathLike]): +def glob_wt5s(directory: Union[str, os.PathLike]): """find all wt5 files in a directory""" return pathlib.Path(directory).glob("**/*.wt5") -