Skip to content
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

Add Pylint #55

Merged
merged 18 commits into from
May 16, 2024
Merged

Add Pylint #55

merged 18 commits into from
May 16, 2024

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented May 7, 2024

Description of changes:

  • fix bugs in assign_molecule_id() and sample scripts
  • resolve Pylint issues with high severity
  • add Pylint checks to the CI pipeline
  • make code more future-proof
  • address MPI and pdoc warnings in CI

jngrad added 5 commits May 7, 2024 11:55
Address pylint rules W0611, W0102, W1401, E1120, C0121, C0123, C0325, R0124, R1714.
Address pylint rules W0311, W1309.
Copy link
Member Author

@jngrad jngrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can find a list of Pylint's rules here.

Due to the large number of changes, and the fact that some changes affect scripts that are not covered by the testsuite, I would recommend allocating more than 1 code reviewer to this PR.

testsuite/bond_tests.py Show resolved Hide resolved
pyMBE.py Show resolved Hide resolved
Makefile Show resolved Hide resolved
pyMBE.py Show resolved Hide resolved
pyMBE.py Show resolved Hide resolved
lib/create_cg_from_pdb.py Show resolved Hide resolved
tutorials/pyMBE_tutorial.ipynb Outdated Show resolved Hide resolved
pm-blanco
pm-blanco previously approved these changes May 8, 2024
@pm-blanco
Copy link
Collaborator

pm-blanco commented May 8, 2024

I have been checking around, testing the parts that are not covered by the CI and I did not find any further issue with the PR. Still, it would be good if at least @paobtorres or @davidbbeyer checks as well before I merge this PR

Makefile Outdated Show resolved Hide resolved
pm-blanco
pm-blanco previously approved these changes May 9, 2024
pyMBE.py Outdated Show resolved Hide resolved
Copy link
Contributor

@davidbbeyer davidbbeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the small points raised above, it looks good to me.

@@ -39,7 +34,7 @@

# Peptide parameters

sequence = 'nEEEEEc'
sequence = 'EEEEDDDD'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for getting rid of the termini here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidbbeyer the reason is that the termini were actually not parametrized in parameters/peptides/Lunkad2021.json. In earlier versions of this script, this was bypassed by adding a generic parametrization for the non-parametrized aminoacid particles. This was a convenient solution to allow to run any peptide sequence, but not really a good practice (since we were basically teaching people to mix parameters instead of thinking about what should be a good parametrization). With @mariusaarsten we have done a more complete parametrization of the amino acids which he will add in his master thesis and we will also provide in pyMBE so we can have a first complete set of parameters for all aminoacids.

maintainer/standarize_data.py Show resolved Hide resolved
Copy link
Collaborator

@pm-blanco pm-blanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidbbeyer @paobtorres I think we are ready now for merging this PR. If you agree, please leave a review approving these changes (go to the files changes tab, review changes botton, and press approve). @paobtorres please open a dedicated PR to fix the issues that you spotted in the create_paper_data.py script.

@pm-blanco pm-blanco merged commit 9b6cc37 into pyMBE-dev:main May 16, 2024
1 check passed
@jngrad jngrad deleted the pylint branch May 16, 2024 14:10
@jngrad jngrad mentioned this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants