-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
af5206a
to
c435dbf
Compare
@@ -50,7 +48,7 @@ def __init__( | |||
|
|||
async def send(self, event: E) -> None: | |||
if self._closed: | |||
raise IOError("Attempted to write to closed stream.") |
There was a problem hiding this comment.
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/
There was a problem hiding this 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.
ef1d10d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
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.