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

Upgrade configuration for Ruff v0.2.0 #28795

Merged
merged 4 commits into from Feb 2, 2024
Merged

Upgrade configuration for Ruff v0.2.0 #28795

merged 4 commits into from Feb 2, 2024

Conversation

charliermarsh
Copy link
Contributor

Summary

This PR upgrades Zulip's Ruff configuration in preparation for Ruff's v0.2.0 release. (The changes are compatible with Ruff v0.1.14, which Zulip uses today.)

Specifically, we're now warning when linter-only options are specified under [tool.ruff] instead of [tool.ruff.lint]. We've also stabilized some changes to RUF019 (and other rules) that led to some new violations, so I just went ahead and applied the fixers. ruff check now passes without error on Zulip with Ruff v0.2.0.

@timabbott
Copy link
Sponsor Member

Thanks for the PR @charliermarsh!

@charliermarsh
Copy link
Contributor Author

v0.2.0 is now live, so happy to update this PR to include the upgrade if you'd like.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
Signed-off-by: Anders Kaseorg <anders@zulip.com>
@zulipbot zulipbot added size: L and removed size: M labels Feb 2, 2024
@andersk
Copy link
Member

andersk commented Feb 2, 2024

Thanks! Edited to fix SIM113 instead of disabling it, clarify the RUF019 fix to default booleans to False, and split out the fixes into individual commits.

@andersk andersk added the integration review Added by maintainers when a PR may be ready for integration. label Feb 2, 2024
@timabbott timabbott merged commit c8e77b6 into zulip:main Feb 2, 2024
19 checks passed
@timabbott
Copy link
Sponsor Member

Merged, thanks @charliermarsh and @andersk!

@timabbott
Copy link
Sponsor Member

This was backported in #29234.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when a PR may be ready for integration. size: L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants