Skip to content

Fix ruff error and script#2680

Merged
aminalaee merged 3 commits intoencode:masterfrom
aminalaee:fix-ruff-error
Apr 26, 2023
Merged

Fix ruff error and script#2680
aminalaee merged 3 commits intoencode:masterfrom
aminalaee:fix-ruff-error

Conversation

@aminalaee
Copy link
Copy Markdown
Contributor

@aminalaee aminalaee commented Apr 25, 2023

Summary

The ruff command in ./scripts/check is not catching the errors, but running ./scripts/lint does.
This PR will fix both ruff command and the bare exception issue.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

@aminalaee aminalaee requested a review from a team April 25, 2023 10:27
@aminalaee
Copy link
Copy Markdown
Contributor Author

I have created the issue to see what if the ruff command needs to be changed: astral-sh/ruff#4093
But anyway the exception handling should be fixed.

Copy link
Copy Markdown
Contributor

@abersheeran abersheeran left a comment

Choose a reason for hiding this comment

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

LGTM

@aminalaee aminalaee merged commit 32e2549 into encode:master Apr 26, 2023
@aminalaee aminalaee deleted the fix-ruff-error branch April 26, 2023 13:20
samclearman pushed a commit to titanmsp/httpx that referenced this pull request Apr 26, 2025
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.

4 participants