Skip to content

Commit ea1ecb0

Browse files
[pre-commit.ci] pre-commit autoupdate (#408)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <[email protected]>
1 parent d6bdf0b commit ea1ecb0

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
# Ruff version.
7-
rev: "v0.6.9"
7+
rev: "v0.9.1"
88
hooks:
99
- id: ruff
1010
args: ["--fix", "--show-fixes"]
@@ -24,15 +24,15 @@ repos:
2424
- id: check-docstring-first
2525

2626
- repo: https://github.com/executablebooks/mdformat
27-
rev: 0.7.17
27+
rev: 0.7.21
2828
hooks:
2929
- id: mdformat
3030
additional_dependencies:
3131
- mdformat-black
3232
- mdformat-myst
3333

3434
- repo: https://github.com/kynan/nbstripout
35-
rev: 0.7.1
35+
rev: 0.8.1
3636
hooks:
3737
- id: nbstripout
3838
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
@@ -45,12 +45,12 @@ repos:
4545
- tomli
4646

4747
- repo: https://github.com/abravalheri/validate-pyproject
48-
rev: v0.20.2
48+
rev: v0.23
4949
hooks:
5050
- id: validate-pyproject
5151

5252
- repo: https://github.com/rhysd/actionlint
53-
rev: v1.7.3
53+
rev: v1.7.6
5454
hooks:
5555
- id: actionlint
5656
files: ".github/workflows/"

flox/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,8 +2364,7 @@ def groupby_reduce(
23642364

23652365
if engine == "flox" and _is_arg_reduction(func):
23662366
raise NotImplementedError(
2367-
"argreductions not supported for engine='flox' yet."
2368-
"Try engine='numpy' or engine='numba' instead."
2367+
"argreductions not supported for engine='flox' yet. Try engine='numpy' or engine='numba' instead."
23692368
)
23702369

23712370
if engine == "numbagg" and dtype is not None:

tests/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def __init__(self, max_computes=0):
6666
def __call__(self, dsk, keys, **kwargs):
6767
self.total_computes += 1
6868
if self.total_computes > self.max_computes:
69-
raise RuntimeError(
70-
"Too many computes. Total: %d > max: %d." % (self.total_computes, self.max_computes)
71-
)
69+
raise RuntimeError(f"Too many computes. Total: {self.total_computes} > max: {self.max_computes}.")
7270
return dask.get(dsk, keys, **kwargs)
7371

7472

0 commit comments

Comments
 (0)