Skip to content
New issue

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

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

Already on GitHub? # to your account

Bumps to ruff==0.9.2 and mypy==1.14.1 #16916

Merged
merged 9 commits into from
Jan 31, 2025
Merged

Bumps to ruff==0.9.2 and mypy==1.14.1 #16916

merged 9 commits into from
Jan 31, 2025

Conversation

chrisguidry
Copy link
Collaborator

Here I've bumped our pre-commit version of ruff to 0.9.2, which did
entail a very large amount of formatting churn.

The only major change here besides formatting is that I'm pinning the
linter/formatter dependencies in requirements-dev.txt to the version
we have in pre-commit. This helps avoid IDE "fighting" with pre-commit
when folks installing prefect's dev dependencies pick up a newer
version of the linter than the pre-commit defines. Hopefully this will
make contributions from other folks easier.

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • If this pull request removes docs files, it includes redirect settings in mint.json.
  • If this pull request adds functions or classes, it includes helpful docstrings.

Here I've bumped our pre-commit version of ruff to 0.9.2, which did
entail a very large amount of formatting churn.

The only major change here besides formatting is that I'm pinning the
linter/formatter dependencies in `requirements-dev.txt` to the version
we have in pre-commit.  This helps avoid IDE "fighting" with pre-commit
when folks installing `prefect`'s dev dependencies pick up a newer
version of the linter than the pre-commit defines.  Hopefully this will
make contributions from other folks easier.
@github-actions github-actions bot added docs upstream dependency An upstream issue caused by a bug in one of our dependencies labels Jan 30, 2025
rev: "v0.2.1"
rev: v0.9.2
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Relevant change

Comment on lines 28 to 34
# Linters and dev tools that are also in .pre-commit-config.yaml, which
# should usually be updated together.
codespell==2.2.6
ruff==0.9.2
mypy==1.9.0
vermin==1.6.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Relevant changes

Copy link

codspeed-hq bot commented Jan 30, 2025

CodSpeed Performance Report

Merging #16916 will not alter performance

Comparing pin-linters (b49fb88) with main (5b5725a)

Summary

✅ 2 untouched benchmarks

Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
@chrisguidry chrisguidry changed the title Bumps to ruff==0.9.2 Bumps to ruff==0.9.2 and mypy==1.14.1 Jan 31, 2025
@desertaxle desertaxle added development Tech debt, refactors, CI, tests, and other related work. and removed docs labels Jan 31, 2025
@github-actions github-actions bot added the docs label Jan 31, 2025
Copy link
Member

@desertaxle desertaxle left a comment

Choose a reason for hiding this comment

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

Thank you!

@chrisguidry
Copy link
Collaborator Author

Thanks for the assist, dude!

@chrisguidry chrisguidry merged commit 81f952d into main Jan 31, 2025
91 checks passed
@chrisguidry chrisguidry deleted the pin-linters branch January 31, 2025 18:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
development Tech debt, refactors, CI, tests, and other related work. docs upstream dependency An upstream issue caused by a bug in one of our dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants