-
Notifications
You must be signed in to change notification settings - Fork 13
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
style(ruff): clear ruff check violations #175
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #175 +/- ##
=======================================
Coverage 90.35% 90.35%
=======================================
Files 29 29
Lines 2083 2083
=======================================
Hits 1882 1882
Misses 201 201 ☔ View full report in Codecov by Sentry. |
Thanks! I'll try and review tomorrow or day after. |
Thank you! There may be some of have been some conflicting with each other from what I found. For example, I was getting violations saying that the I think these cases are squared away now. $ ruff check
All checks passed!
$ pre-commit run --all-files
prettier.................................................................Passed
ruff.....................................................................Passed
ruff-format..............................................................Passed
Sort __all__ records.....................................................Passed |
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.
Thanks! Looks like this caught a number of minor issues and made several net improvements (like the .glob()
change); much appreciated!
I think the examples/*.ipynb
skips are fine, but I wonder whether the extra tests/*.py
ones are necessary?
pyproject.toml
Outdated
@@ -86,6 +86,8 @@ ignore = [ | |||
[tool.ruff.lint.per-file-ignores] | |||
"__init__.py" = ["F401", "F403"] | |||
"docs/**/*.py" = ["INP001"] | |||
"examples/*.ipynb" = ["E501", "ERA001", "I001", "T201"] | |||
"tests/*.py" = ["PT001", "RUF100", "SLF001"] |
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.
If SLF001
is coming from the tests, maybe just do from ibis import _
up top instead?
For PT001
skip, I think that should be unnecessary with your fixes.
RUF100
also doesn't seem like it should be necessary.
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.
Excellent catch!
Yes, after removing "tests/*.py" = ["PT001", "RUF100", "SLF001"]
, I am finding that all of the ruff checks are passing without the "tests/*.py" ignores.
Actually, can you bump the Ruff version in |
We can just wrap this after "is". :) |
🤦 - I should have thought of this! Thank you! |
77a254d
to
ee4ac23
Compare
I was looking through the repo and wanted to clear up the remaining outstanding ruff check violations.
Many of these are minor, and I was able to clear them by adjusting the following:
Here are the totals before the run:
I'm still getting one violation after this, not sure how to get rid of this one. I might do a bit more digging later on, if this is something we will want to do. Adding
# noqa: E501
wasn't resolving it.