marrink-lab / vermouth-martinize

Describe and apply transformation on molecular structures and topologies
Apache License 2.0
89 stars 40 forks source link

Update run_pylint.py #397

Closed fgrunewald closed 2 years ago

fgrunewald commented 2 years ago

Fixes the broken pylint runner.

fgrunewald commented 2 years ago

This is a quite strange bug. One problem for sure is the usage of 'global_note' as dict key versus class attribute. For polyply that was enough to fix it. Now the exit code is also not 1 anymore but rather 28. As detailed here https://stackoverflow.com/questions/67061702/what-is-pylint-exit-code-28 this should have to do with formatting. However, after copying the pylintrc from polyply it still fails. I also cannot see an open issue that would directly apply to this. Again the fact that pylint works in polyply makes even more strange ...

Also running on local machine the return code is 0 and if the fail-under is changed to something higher (e.g. 9.5) I get 1.

pckroon commented 2 years ago

Is the run_pylint.py still needed? IIRC they added a --fail-under to pylint proper

fgrunewald commented 2 years ago

I guess the answer is no we don't need it, but the error we get is not related to that as far as I can tell.

pckroon commented 2 years ago

Removing the run_pylint.py reduces the complexity, so I'd say it's a good start. Beyond that I don't know.

fgrunewald commented 2 years ago

This PR becomes irrelevant with the update in #407.