Skip to content

Commit

Permalink
Update pre-commit hooks (#8444)
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait authored Jan 10, 2024
1 parent c545342 commit d93d498
Show file tree
Hide file tree
Showing 3 changed files with 10 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 @@ -7,7 +7,7 @@ repos:
- id: absolufy-imports
name: absolufy-imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
language_version: python3
Expand All @@ -18,21 +18,21 @@ repos:
args:
- --py39-plus
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 23.12.1
hooks:
- id: black
language_version: python3
args:
- --target-version=py39
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
language_version: python3
additional_dependencies:
# NOTE: autoupdate does not pick up flake8-bugbear since it is a transitive
# dependency. Make sure to update flake8-bugbear manually on a regular basis.
- flake8-bugbear==23.9.16
- flake8-bugbear==23.12.2
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand All @@ -42,7 +42,7 @@ repos:
types_or: [rst, markdown]
files: docs
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
rev: v1.8.0
hooks:
- id: mypy
# Override default --ignore-missing-imports
Expand Down
2 changes: 1 addition & 1 deletion distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,7 @@ async def _gather(self, futures, errors="raise", direct=None, local_worker=None)
"Cannot gather Futures created by another client. "
f"These are the {len(mismatched_futures)} (out of {len(futures)}) "
f"mismatched Futures and their client IDs (this client is {self.id}): "
f"{ {f: f.client.id for f in mismatched_futures} }"
f"{ {f: f.client.id for f in mismatched_futures} }" # noqa: E201, E202
)
keys = [future.key for future in future_set]
bad_data = dict()
Expand Down
8 changes: 4 additions & 4 deletions distributed/dashboard/components/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2867,16 +2867,16 @@ def update(self):
f"{comp_tasks} ({comp_tasks / tot_tasks * 100:.0f} %)"
)
nodes_data["in_processing"].append(
f"{tasks_processing} ({tasks_processing/ tot_tasks * 100:.0f} %)"
f"{tasks_processing} ({tasks_processing / tot_tasks * 100:.0f} %)"
)
nodes_data["in_memory"].append(
f"{tasks_memory} ({tasks_memory/ tot_tasks * 100:.0f} %)"
f"{tasks_memory} ({tasks_memory / tot_tasks * 100:.0f} %)"
)
nodes_data["in_released"].append(
f"{tasks_relased} ({tasks_relased/ tot_tasks * 100:.0f} %)"
f"{tasks_relased} ({tasks_relased / tot_tasks * 100:.0f} %)"
)
nodes_data["in_erred"].append(
f"{ tasks_erred} ({tasks_erred/ tot_tasks * 100:.0f} %)"
f"{tasks_erred} ({tasks_erred / tot_tasks * 100:.0f} %)"
)

self.nodes_source.data.update(nodes_data)
Expand Down

0 comments on commit d93d498

Please sign in to comment.