Skip to content

Commit 8be31d9

Browse files
[pre-commit.ci] pre-commit autoupdate (#701)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4e8a8d5 commit 8be31d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: mixed-line-ending
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: "v0.8.6"
18+
rev: "v0.9.4"
1919
hooks:
2020
- id: ruff
2121
args: ["--fix"]

intake_esm/source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _update_attrs(*, additional_attrs, ds):
114114
additional_attrs = additional_attrs or {}
115115
if additional_attrs:
116116
additional_attrs = {
117-
f"{OPTIONS['attrs_prefix']}:{key}": f'{value}'
117+
f'{OPTIONS["attrs_prefix"]}:{key}': f'{value}'
118118
if isinstance(value, str) or not hasattr(value, '__iter__')
119119
else ','.join(value)
120120
for key, value in additional_attrs.items()
@@ -260,7 +260,7 @@ def _open_dataset(self):
260260
datasets = sorted(
261261
datasets,
262262
key=lambda ds: tuple(
263-
f"{OPTIONS['attrs_prefix']}/{agg.attribute_name}"
263+
f'{OPTIONS["attrs_prefix"]}/{agg.attribute_name}'
264264
for agg in self.aggregations
265265
),
266266
)

0 commit comments

Comments
 (0)