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

Use base ruff config for all projects #462

Merged
merged 3 commits into from
Mar 24, 2025
Merged

Use base ruff config for all projects #462

merged 3 commits into from
Mar 24, 2025

Conversation

JordonPhillips
Copy link
Contributor

I noticed we weren't sorting imports despite having that configured in our pyproject.toml. Turns out ruff wasn't using the top-level config at all. So I fixed it. There were a few minor manual fixes that had to be made too, and a few noqa's had to be added.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@JordonPhillips JordonPhillips requested a review from a team as a code owner March 21, 2025 15:24
@@ -50,7 +48,7 @@ def __init__(

async def send(self, event: E) -> None:
if self._closed:
raise IOError("Attempted to write to closed stream.")
Copy link
Contributor

Choose a reason for hiding this comment

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

For reviewers also wondering, this is related to: https://docs.astral.sh/ruff/rules/os-error-alias/

jonathan343
jonathan343 previously approved these changes Mar 21, 2025
Copy link
Contributor

@jonathan343 jonathan343 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding this! I knew something felt off with our formatting and linting.

Copy link
Contributor

@jonathan343 jonathan343 left a comment

Choose a reason for hiding this comment

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

🚀

@JordonPhillips JordonPhillips merged commit f601fcf into develop Mar 24, 2025
2 checks passed
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.

3 participants