-
Notifications
You must be signed in to change notification settings - Fork 51
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
Pylint alerts corrections as part of intervention experiment #419
Comments
I was not familiar with ruff, thank you for letting me know @xiki-tempula , I'll check it. Regarding the use of linters, they might help to improve the code significantly. The experiment can allow you to see the fixes on your code and their value (and I'll be happy to know what you think of them). So, can I do the interventions? |
I kind of prefer to do it with ruff. I'm happy if you want to do it with ruff but I don't think anyone uses pylint, so I don't want to do something that makes pylint happy but makes other more common linting tools unhappy. |
I understand your concern. As you can see in the planed internetions, there are 10 alerts. Also, the benefit of the project is a main concern. |
I think it would be good to do all the linting fix in one go. But I think you could do a PR and I could see if we can merge it. |
Great. |
@xiki-tempula, please see the PR with the alert fixes. I would like to also consult you regarding two alerts, which I did not fix yet. In src\alchemlyb\workflows\base.py, the method plot is empty with just pass. In src\alchemlyb\preprocessing\subsampling.py, there is an alert in line 189 on |
Oh, I see that some test fail due to my changes. |
There were two faliures which I fixed. The first was in src\alchemlyb\visualisation\dF_state.py This might detect a bigger bug regarding not setting it unintentionally. The other was in src\alchemlyb\workflows\abfe.py which pass now. I also get slightly less coverage This is due to untested exception raising code. |
There is an additional faliure at windows-latest, 3.12 I could not trace it and I don't recall touching related code. @xiki-tempula , can you consult on that too? |
I noted that the CI failed on the same problem regardless of my PR. |
@xiki-tempula , are you satisfied with the PR? |
I'm happy with the fix which fixes line too long. |
This is a good start already. Regarding the spliting, I tried to chooce code parts that are
In general, it is recommended to split to code into small units having a single goal. Are there cases in which you are ok with the splitting? |
@xiki-tempula , would you like me to create anew PR, without the splitting, so you will be OK with merging it? |
without the splitting, please? Thanks. |
Great, I created a dedicated PR |
I'd like to conduct a software engineering experiment regarding the benefit of Pylint alerts removal.
The experiment is described here.
In the experiments, Pylint is used with some specific alerts, files are selected for intervention and control.
After the interventions are done, one can wait and examine the results.
I'm asking your approval for conducting the interventions in your repositories.The interventions are expected to benefit the project and will submitted in PR for approval.
See examples of interventions in stanford-oval/storm, gabfl/vault, and coreruleset/coreruleset.
See the planed internetions.
Is it OK if I'll fix the alerts?
The text was updated successfully, but these errors were encountered: