-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ruff E through P #45
Ruff E through P #45
Conversation
"EM", # flake8-errmsg | ||
"ERA", # eradicate | ||
"F", # Pyflakes | ||
"FA", # flake8-future-annotations | ||
# "FBT", # flake8-boolean-trap |
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.
purposefully skipping FBT for this PR. Will be addressed in it's own at the end.
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.
Some small questions for clarity and/or discussion, no notes! Thanks for the work, Marcel!
ruff = {version = "*", optional = true} | ||
ruff = {version = ">=0.2.0", optional = true} |
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.
What necessitated this change?
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.
The new rule changes in the pyproject.toml occurred at that version.
[tool.ruff.lint.***]
assert annotation == Optional[TargetingError] | ||
assert annotation == "Optional[TargetingError]" |
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.
Interesting, i'm assuming this is from the from __future__ import annotations
change?
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.
Yep. All annotations are strings when using future.
with pytest.raises(ValueError, match="locator tuple length should be 2"): | ||
Target("test").located((By.ID, "foo", "baz")) # type: ignore[arg-type] |
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 like these changes, too!
No description provided.