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

Implement ruff rules A through D #42

Merged
merged 19 commits into from
Feb 2, 2024

Conversation

bandophahita
Copy link
Contributor

No description provided.

@bandophahita bandophahita requested a review from perrygoy January 11, 2024 13:49
Copy link
Member

@perrygoy perrygoy left a comment

Choose a reason for hiding this comment

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

I have a few suggested changes, but all the rest looks great!

.github/workflows/poetry.yml Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
screenpy_selenium/actions/click.py Show resolved Hide resolved
screenpy_selenium/actions/hold_down.py Outdated Show resolved Hide resolved
screenpy_selenium/actions/release.py Outdated Show resolved Hide resolved
screenpy_selenium/target.py Outdated Show resolved Hide resolved
screenpy_selenium/target.py Outdated Show resolved Hide resolved
setup.py Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this file anymore? Maybe this would be a good chance to delete it.

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 think we can remove it. I figured it's removal would be in it's own PR though. Since we need to do that for each of the packages.

tests/test_actions.py Show resolved Hide resolved
tests/test_actions.py Show resolved Hide resolved
@MarcelWilson
Copy link
Contributor

@perrygoy updates are in.

Copy link
Member

@perrygoy perrygoy left a comment

Choose a reason for hiding this comment

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

Just one last thing i noticed!

@@ -52,40 +67,129 @@ selenium = ">=4.1.0"
importlib_metadata = {version = "*", python = "3.8.*"}

# convenience packages for development of screenpy only
black = {version = "*", optional = true}
coverage = {version = "*", optional = true}
isort = {version = "*", optional = true}
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need isort anymore? Doesn't ruff do the needful?

Copy link
Contributor Author

@bandophahita bandophahita Feb 2, 2024

Choose a reason for hiding this comment

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

Technically no.
I've still been using it until ruff implements the combine imports to single line feature. But otherwise no reason to have it in there still. I left it in because it only is installed for dev.

Copy link
Member

Choose a reason for hiding this comment

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

All right, i don't really see a problem with it for now. 👍

"coverage",
"isort",
Copy link
Member

Choose a reason for hiding this comment

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

Same note about isort.

Copy link
Member

@perrygoy perrygoy left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for doing all this work.

@@ -52,40 +67,129 @@ selenium = ">=4.1.0"
importlib_metadata = {version = "*", python = "3.8.*"}

# convenience packages for development of screenpy only
black = {version = "*", optional = true}
coverage = {version = "*", optional = true}
isort = {version = "*", optional = true}
Copy link
Member

Choose a reason for hiding this comment

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

All right, i don't really see a problem with it for now. 👍

@bandophahita bandophahita merged commit c7b173f into ScreenPyHQ:trunk Feb 2, 2024
11 checks passed
@bandophahita bandophahita deleted the implement-ruff branch February 2, 2024 22:53
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