From 657f96af08285da10275e2fc0270e39819bc1351 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:07:42 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v3.4.0 → v4.0.1](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v4.0.1) - [github.com/psf/black: 20.8b1 → 21.7b0](https://github.com/psf/black/compare/20.8b1...21.7b0) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.8.3 → 3.9.2](https://github.com/PyCQA/flake8/compare/3.8.3...3.9.2) - [github.com/PyCQA/isort: 5.8.0 → 5.9.3](https://github.com/PyCQA/isort/compare/5.8.0...5.9.3) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2c3e76227..c5d1815a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ exclude: | ) repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.0.1 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -21,16 +21,16 @@ repos: args: ["--autofix", "--indent=2", "--no-sort-keys"] - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.7b0 hooks: - id: black - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + - repo: https://github.com/PyCQA/flake8 + rev: 3.9.2 hooks: - id: flake8 - repo: https://github.com/PyCQA/isort - rev: 5.8.0 + rev: 5.9.3 hooks: - id: isort From f73d19762f4e8be47eae52ce758afdc0c6008e29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:07:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- echopype/echodata/echodata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/echopype/echodata/echodata.py b/echopype/echodata/echodata.py index e18d9ea0c..5f4195f92 100644 --- a/echopype/echodata/echodata.py +++ b/echopype/echodata/echodata.py @@ -142,7 +142,7 @@ def _load_file(self, raw_path): setattr(self, group, ds) def _check_path(self, filepath): - """ Check if converted_raw_path exists """ + """Check if converted_raw_path exists""" file_exists = check_file_existance(filepath, self.storage_options) if not file_exists: raise FileNotFoundError(f"There is no file named {filepath}") @@ -152,7 +152,7 @@ def _sanitize_path(self, filepath): return filepath def _check_suffix(self, filepath): - """ Check if file type is supported. """ + """Check if file type is supported.""" # TODO: handle multiple files through the same set of checks for combining files if isinstance(filepath, fsspec.FSMap): suffix = Path(filepath.root).suffix @@ -165,7 +165,7 @@ def _check_suffix(self, filepath): return suffix def _load_group(self, filepath, group=None): - """ Loads each echodata group """ + """Loads each echodata group""" suffix = self._check_suffix(filepath) return xr.open_dataset(filepath, group=group, engine=XARRAY_ENGINE_MAP[suffix])