Skip to content

Commit

Permalink
update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Dec 5, 2024
1 parent 0efae01 commit 4f95810
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.8.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 1 addition & 1 deletion erddapy/erddapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def download_file(
"""Download the dataset to a file in a user specified format."""
file_type = file_type.lstrip(".")
if file_type not in _DOWNLOAD_FORMATS:
msg = f"Requested filetype {file_type} not available on ERDDAP"
msg = f"Requested filetype {file_type} not available on ERDDAP."
raise ValueError(msg)
url = _sort_url(self.get_download_url(response=file_type))
fname_hash = hashlib.shake_256(url.encode()).hexdigest(5)
Expand Down
2 changes: 2 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ lint.ignore = [
"D205", # 1 blank line required between summary line and description
"D213", # incompatible. Ignoring `multi-line-summary-second-line`
"TRY003", # Avoid specifying long messages outside the exception class
"COM812", # missing-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
]

[lint.extend-per-file-ignores]
Expand Down

0 comments on commit 4f95810

Please sign in to comment.