Skip to content

Commit

Permalink
Merge pull request #410 from OSOceanAcoustics/pre-commit-ci-update-co…
Browse files Browse the repository at this point in the history
…nfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
lsetiawan authored Aug 11, 2021
2 parents e01d575 + f73d197 commit 1edc95c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions echopype/echodata/echodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand All @@ -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
Expand All @@ -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])

Expand Down

0 comments on commit 1edc95c

Please sign in to comment.