-
Notifications
You must be signed in to change notification settings - Fork 68
[PLT-1506] Added Ruff linting to SDK #1822
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
Conversation
@Gabefire is it linting? or removing ND deserialization? Or both? |
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.
Great job
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.
Had to remove approval due to failing tests for p3.12 version
@@ -74,6 +74,10 @@ dev-dependencies = [ | |||
[tool.ruff] | |||
line-length = 80 | |||
|
|||
[tool.ruff.lint] | |||
ignore = ["F", "E722"] | |||
exclude = ["**/__init__.py"] |
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.
This needs to be excluded for future rules (no unused imports)
@@ -74,6 +74,10 @@ dev-dependencies = [ | |||
[tool.ruff] | |||
line-length = 80 | |||
|
|||
[tool.ruff.lint] | |||
ignore = ["F", "E722"] |
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 have PyFlake and a bareexcept rule ignored here. Later we should look at not ignoring these rules and possiblly include more then just the defaults.
rye-fmt-check = "rye fmt --check" | ||
mypy-lint = "mypy src --pretty --show-error-codes --non-interactive --install-types" | ||
lint = { chain = ["mypy-lint", "rye-fmt-check"] } | ||
lint = { chain = ["rye-fmt-check", "mypy-lint", "rye-lint"] } |
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.
do we still need mypy here?
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.
Yea I think so Mypy is a type checker
Description