-
Notifications
You must be signed in to change notification settings - Fork 61
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
Attempt 2 for Ruff #286
Attempt 2 for Ruff #286
Conversation
1cd450a
to
bbd7cb5
Compare
pyproject.toml
Outdated
[tool.ruff.lint] | ||
select = ["I", "D", "E", "W"] | ||
# ruff configuration | ||
# E, W -- pycodestyle | ||
# D -- pydocstyle | ||
# I -- isort |
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.
@vprusso Of the available rules to check, these appeared to be the most obvious. Do you want me to add anything else?
BTW feel free to take your time to respond to things on here. I don't really expect a quick response on holidays and weekends. Even on a weekday, I don't expect a quick response. Within 24 hours is fine by me!
Edit: In the newer version of this file, I have also added PL
for pylint.
I think PLR0912, PLR0911, PLR0915
could be ignored.
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.
@vprusso You missed this earlier comment here. No worries!
Should we try to add more rules beyond what's already added?
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.
Ah, my apologies. Nope, I think that list looks good. If we decide we want to add something in later we can do that, but for now, this list looks good to me!
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #286 +/- ##
======================================
Coverage 98.1% 98.1%
======================================
Files 295 295
Lines 6926 6959 +33
Branches 772 772
======================================
+ Hits 6795 6829 +34
Misses 90 90
+ Partials 41 40 -1 ☔ View full report in Codecov by Sentry. |
Except for the Code coverage has decreased though. So, will try to bring it back up later by adding tests for the uncovered lines. |
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.
Wow, quite the diff! It's great to see so much consistency and improvement across the board! Only one minor comment, but modulo the coverage (depending on whether it makes sense to fix in this diff) LGTM! 🚀
139fe15
to
d372bc9
Compare
@vprusso Not sure what happened here but all Edit: I have also attempted a git rebase. |
d372bc9
to
2ea3f93
Compare
Co-authored-by: Vincent Russo <[email protected]>
2ea3f93
to
92dfe5e
Compare
Description
Fixes #277 and what was started in #280
Todos
Notable points that this PR has either accomplished or will accomplish.
Some things flagged by isort and pycodestyle have already been completed. Following are the things flagged by pydocstyle.
toqito/matrix_props/tests/test_is_orthonormal.py:8:5: D404 First word of the docstring should not be "This"toqito/matrix_props/tests/test_is_orthonormal.py:19:5: D404 First word of the docstring should not be "This"Questions
Status