PR: Add wrapers to fix argument name in QFileDialog get*methods#433
PR: Add wrapers to fix argument name in QFileDialog get*methods#433dalthviz merged 4 commits intospyder-ide:masterfrom
QFileDialog get*methods#433Conversation
QFileDialog get*methodsQFileDialog get*methods
|
Thanks @Czaki for your work here! Seems like we can go with this approach. Then the only missing thing here would be to try to add a test for this but other than that this LGTM 👍 |
|
After last PySide6 problems I need find way to test it. |
|
How to deal with |
My guess is that that could come from using the Also, for the test, maybe using a |
No. Timers are implemented in Qt as events put in the main queue event (for performance). Especially in documentation, there is:
I have also observed problems with timers in such scenarios in the past. It happens that they are not triggered on CI when another event loop is started. There is a check if the thread is closed before the end of the new test.
Yes but I do not know where it is created. |
Seems like there is a fixture that is called |
|
It looks like source of all problems was lack of some libraries in system. It looks like it is possible to unskip more tests. Are you think it is worth? |
Oh that's good to know! I think it would be great if we can unskip tests! |
QFileDialog get*methodsQFileDialog get*methods and unskip some tests
done in #434 |
|
It is ready. I prefer to fix #434 first and then resolve conflicts. |
QFileDialog get*methods and unskip some testsQFileDialog get*methods
add tests
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
|
Too many projects with black and ruff in pre-commit when there is no need to check formatting in base case as it will be auto fixed. |
|
No worries. We're actually behind the times on that front but the thing is we have a lot of code to maintain and little time to do that sort of devops work. Do you know some simple to set up GH actions to get started with Black and Ruff? |
|
In napari, we activate pre-commit.ci tahat is free for OSS, automatically makes update commits and automatically create PR with the update of items in Starting configuration could be two first entries from: https://github.com/napari/napari/blob/main/.pre-commit-config.yaml Black configuration could be: Our Ruff configuration is here: Another project that I maintain has this configuration: Both may be a good starting point requiring adjustment. |
dalthviz
left a comment
There was a problem hiding this comment.
Thanks @Czaki for all your work here! Left some questions in the workflow file regarding the new step since it seems like it duplicates partially a previous step. Also left a small suggestion for the test docstring. Other than that this LGTM 👍
On the other hand, regarding the autoformating/pre-commit/black/etc, that's something we need to do indeed! In fact, we have an issue tracking that: #345 Also, thanks for the suggestions! I will put a reference to your comment in the issue so we can check them in the future 👍
Co-authored-by: Daniel Althviz Moré <d.althviz10@uniandes.edu.co>
closes #432
What did you think about this as idea?