Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pre-commit hooks #8444

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

hendrikmakait
Copy link
Member

Closes #xxxx

  • Tests added / passed
  • Passes pre-commit run --all-files

@hendrikmakait hendrikmakait requested a review from fjetter as a code owner January 9, 2024 16:40
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    27 files  ± 0      27 suites  ±0   9h 36m 22s ⏱️ - 6m 21s
 3 951 tests ± 0   3 841 ✅ + 1    109 💤 ±0  1 ❌  - 1 
49 696 runs  +18  47 407 ✅ +27  2 288 💤  - 8  1 ❌  - 1 

For more details on these failures, see this check.

Results for commit 7b18917. ± Comparison against base commit 7562f9c.

♻️ This comment has been updated with latest results.

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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}}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this update results in a genuine behavior change (TIL)

In [1]: f"{ {i:i for i in range(10)} }"
Out[1]: '{0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}'

In [2]: f"{{i:i for i in range(10)}}"
Out[2]: '{i:i for i in range(10)}'

Can we add an ignore or something to this line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I wasn't aware of that! Fixed

@jrbourbeau jrbourbeau changed the title Update pre-commit Update pre-commit hooks Jan 10, 2024
@jrbourbeau jrbourbeau merged commit d93d498 into dask:main Jan 10, 2024
31 of 34 checks passed
@hendrikmakait hendrikmakait deleted the update-pre-commit branch January 10, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants