-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test(pytest): remove star imports to please ruff linter #4382
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
c55bc26 to
1b1a225
Compare
Github CLI is an excellent tool for that. Please make sure all the tests pass locally. I see a lot failing tests. You have missed some imports. |
I’m on macOS 13.7 (Ventura) and I struggle to run the tests locally. I was able to install and set up I do have a local PG server running, I’m unsure if that’s useful for a
Actually that’s not imports, but fixtures. For example this test Lines 97 to 120 in ea2c64d
defaultenv via its function arguments, but as the error here states:
that fixture wasn’t “found”. Previously (before this change) that fixture Lines 35 to 44 in ea2c64d
conftest.py file to share fixtures, instead of importing them.
To proceed with this change, perhaps we should
|
Not sure, maybe try removing
No, you don't need a local pg server, every dependency comes sandboxed in the nix environment.
This is a great idea! Perhaps I would need to look into that because currently we have fixtures in multiple files and would require moving things around. To finish this PR, I think the safest option would be to go with explicit imports for now. These aren't a lot of imports (4 or 5). Also, could you can add a big comment or |
Hmm ok, I’ll try that.
Yup, agreed. I can noodle on that after we fixed the lint?
Alright, I do that in the morning. Do you mind if I fly blind for now (i.e. no local tests until I get the |
Yes, we can do later improvements after setting up the lint.
There is no hurry, but yes, I think that's ok if you are being careful. |
1b1a225 to
80974d0
Compare
80974d0 to
5381036
Compare
|
This isn't really working, because As you mentioned earlier, I think it would be best to first move all fixtures to Let me move things around and restructure overall first and then we can move forward with this PR. |
|
@jenstroeger Please go ahead and rebase on top of #4387. |
@taimoorzaeem done, still getting errors when running |
5381036 to
58b12a0
Compare
|
@taimoorzaeem all yours 🤓 |
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.
Looks good to merge 🚀. @jenstroeger Please change PR status from draft to ready.
This clears up these 3 lint errors from #4363 (comment):
268 F405 [x] undefined-local-with-import-star-usage
12 F403 [x] undefined-local-with-import-star
1 F401 [x] unused-import
@taimoorzaeem donesir! |
As discussed in comment #4377 (comment)
I’m not sure how to pick your PR #4363 (i.e. fork branch
taimoorzaeem:test/pylint) as base, though. Short of forking your fork 🤔