Skip to content

Commit db00537

Browse files
chore: update pre-commit hooks (#918)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 74c0ef5 commit db00537

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ repos:
2828
- id: trailing-whitespace
2929

3030
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.8.1
31+
rev: v0.9.9
3232
hooks:
3333
- id: ruff
3434
args: ["--fix", "--exit-non-zero-on-fix"]
3535
- id: ruff-format
3636

3737
- repo: https://github.com/astral-sh/uv-pre-commit
38-
rev: "0.5.5"
38+
rev: "0.6.3"
3939
hooks:
4040
# Asserts that the lockfile is valid for pyproject.toml.
4141
# If it fails, update the lockfile by running:
@@ -49,14 +49,14 @@ repos:
4949
stages: ["manual"]
5050

5151
- repo: https://github.com/google/yamlfmt
52-
rev: v0.14.0
52+
rev: v0.16.0
5353
hooks:
5454
- id: yamlfmt
5555
types_or: [yaml]
5656
exclude: ".*/vcr_cassettes/.*\\.yaml"
5757

5858
- repo: https://github.com/codespell-project/codespell
59-
rev: "v2.3.0"
59+
rev: "v2.4.1"
6060
hooks:
6161
- id: "codespell"
6262
exclude: ".codespellignore|tests/.*"

earthaccess/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class Session instance with Auth and bearer token headers
235235
# This will avoid the use of the netrc after we are logged in
236236
session.trust_env = False
237237
session.headers.update(
238-
{"Authorization": f'Bearer {self.token["access_token"]}'}
238+
{"Authorization": f"Bearer {self.token['access_token']}"}
239239
)
240240
return session
241241

earthaccess/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _repr_collection_html() -> str:
2121
def _repr_granule_html(granule: Any) -> str:
2222
css_styles = _load_static_files()
2323
css_inline = f"""<div id="{uuid4()}" style="height: 0px; display: none">
24-
{''.join([f"<style>{style}</style>" for style in css_styles])}
24+
{"".join([f"<style>{style}</style>" for style in css_styles])}
2525
</div>"""
2626
style = "max-height: 120px;"
2727
dataviz_img = "".join(

earthaccess/results.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def __repr__(self) -> str:
240240
"""
241241
data_links = [link for link in self.data_links()]
242242
rep_str = f"""
243-
Collection: {self['umm']['CollectionReference']}
244-
Spatial coverage: {self['umm']['SpatialExtent']}
245-
Temporal coverage: {self['umm']['TemporalExtent']}
243+
Collection: {self["umm"]["CollectionReference"]}
244+
Spatial coverage: {self["umm"]["SpatialExtent"]}
245+
Temporal coverage: {self["umm"]["TemporalExtent"]}
246246
Size(MB): {self.size()}
247247
Data: {data_links}\n\n
248248
""".strip().replace(" ", "")
@@ -303,7 +303,7 @@ def _derive_s3_link(self, links: List[str]) -> List[str]:
303303
elif link.startswith("https://") and (
304304
"cumulus" in link or "protected" in link
305305
):
306-
s3_links.append(f's3://{links[0].split("nasa.gov/")[1]}')
306+
s3_links.append(f"s3://{links[0].split('nasa.gov/')[1]}")
307307
return s3_links
308308

309309
def data_links(

0 commit comments

Comments
 (0)