Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#408)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Deepak Cherian <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and dcherian authored Jan 13, 2025
1 parent d6bdf0b commit ea1ecb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.6.9"
rev: "v0.9.1"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -24,15 +24,15 @@ repos:
- id: check-docstring-first

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
- mdformat-black
- mdformat-myst

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
Expand All @@ -45,12 +45,12 @@ repos:
- tomli

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.20.2
rev: v0.23
hooks:
- id: validate-pyproject

- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
rev: v1.7.6
hooks:
- id: actionlint
files: ".github/workflows/"
Expand Down
3 changes: 1 addition & 2 deletions flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,8 +2364,7 @@ def groupby_reduce(

if engine == "flox" and _is_arg_reduction(func):
raise NotImplementedError(
"argreductions not supported for engine='flox' yet."
"Try engine='numpy' or engine='numba' instead."
"argreductions not supported for engine='flox' yet. Try engine='numpy' or engine='numba' instead."
)

if engine == "numbagg" and dtype is not None:
Expand Down
4 changes: 1 addition & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def __init__(self, max_computes=0):
def __call__(self, dsk, keys, **kwargs):
self.total_computes += 1
if self.total_computes > self.max_computes:
raise RuntimeError(
"Too many computes. Total: %d > max: %d." % (self.total_computes, self.max_computes)
)
raise RuntimeError(f"Too many computes. Total: {self.total_computes} > max: {self.max_computes}.")
return dask.get(dsk, keys, **kwargs)


Expand Down

0 comments on commit ea1ecb0

Please sign in to comment.