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 ruff for pyupgrade and isort #926

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

zariiii9003
Copy link
Contributor

You could activate many more rules to be checked on commit and in CI.

@@ -379,7 +378,7 @@ def from_dict(conversion: dict[str, Any]) -> v4b.ChannelConversion:
return conversion


def to_dict(conversion: ChannelConversionType) -> Union[dict, None]:
def to_dict(conversion: ChannelConversionType) -> dict | None:
Copy link
Owner

Choose a reason for hiding this comment

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

Doesn't this require Python >= 3.10 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it does, but ruff ignores it, because the file contains from __future__ import annotations.

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, let me know when it is ready for merging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd say it's ready. This little change resulted in 73 modified files, that's enough for one PR 😄

Copy link
Owner

Choose a reason for hiding this comment

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

Small changes ,😁

@danielhrisca danielhrisca merged commit 17c7a8d into danielhrisca:development Oct 17, 2023
17 of 18 checks passed
@danielhrisca
Copy link
Owner

Thanks!

@zariiii9003 zariiii9003 deleted the use_ruff_linter branch October 17, 2023 09:44
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.

None yet

2 participants