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

Add new rules to ruff config #4250

Merged
merged 4 commits into from May 12, 2024
Merged

Add new rules to ruff config #4250

merged 4 commits into from May 12, 2024

Conversation

harshil21
Copy link
Member

Most notably adds the "ARG" rule which I deliberately didn't add previously. #4180 (comment) prompted this.

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

interesting updates!

telegram/_birthdate.py Outdated Show resolved Hide resolved
telegram/_bot.py Show resolved Hide resolved
telegram/_message.py Show resolved Hide resolved
@@ -165,7 +165,7 @@ class SimpleUpdateProcessor(BaseUpdateProcessor):

async def do_process_update(
self,
update: object,
update: object, # noqa: ARG002
Copy link
Member

Choose a reason for hiding this comment

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

tbh this seems like a bug in ARG002 - is the parent class defines this, ruff shouldn't complain …

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll open an issue on their repo and see what they think

Copy link
Member

Choose a reason for hiding this comment

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

I'd still be okay with merging btw

telegram/ext/filters.py Outdated Show resolved Hide resolved
apparently pre-commit does not run on rebasing
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

LEGTM, then :) Let me know if I should merge or if you have additional changes planned

@harshil21
Copy link
Member Author

all done from my side. Can be merged

@Bibo-Joshi Bibo-Joshi merged commit f3bd0f1 into master May 12, 2024
21 of 24 checks passed
@Bibo-Joshi Bibo-Joshi deleted the ruff-bump branch May 12, 2024 07:13
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants