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

Code quality #154

Merged
merged 19 commits into from
Apr 27, 2023
Merged

Code quality #154

merged 19 commits into from
Apr 27, 2023

Conversation

ralf-meyer
Copy link
Member

Latest batch of type hints and new test cases



rect = read_dictionary('scaling.csv')
rect = read_dictionary('scaling.csv')

Check notice

Code scanning / CodeQL

Unused global variable Note

The global variable 'rect' is not used.
del self.hetmols[k]
try: # RM 2023/04/22: I don't think this is necessary as stripAtoms takes care of deleting the hetmol
del self.hetmols[k]
except KeyError:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
smicat_zero = temp_ligand['coord_atoms_zero_index'].copy()
if 'frag_func_smiles' in list(ligand.keys()):
smiles = temp_ligand['frag_func_smiles']
original = temp_ligand['frag_func_smiles']

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'original' is unnecessary as it is
redefined
before this value is used.
original = temp_ligand['frag_func_smiles']
else:
smiles = temp_ligand['macrocycle_smiles']
original = temp_ligand['macrocycle_smiles']

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'original' is unnecessary as it is
redefined
before this value is used.
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Patch coverage: 9.55% and project coverage change: +0.08 🎉

Comparison is base (1c39c62) 25.66% compared to head (1c0f102) 25.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #154      +/-   ##
==========================================
+ Coverage   25.66%   25.75%   +0.08%     
==========================================
  Files         102      102              
  Lines       33600    33652      +52     
==========================================
+ Hits         8624     8667      +43     
- Misses      24976    24985       +9     
Flag Coverage Δ
unittests 25.75% <9.55%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
molSimplify/Classes/mGUI.py 0.00% <0.00%> (ø)
molSimplify/Classes/monomer3D.py 0.00% <0.00%> (ø)
molSimplify/Classes/protein3D.py 0.00% <0.00%> (ø)
...itivity/measure_HFX_sensitivity_oxo_hat_reb_rel.py 0.00% <0.00%> (ø)
...y/Informatics/HFXsensitivity/measure_HFX_stable.py 0.00% <0.00%> (ø)
molSimplify/Informatics/bridge_functionalizer.py 0.00% <0.00%> (ø)
molSimplify/Informatics/frag_functionalizer.py 0.00% <0.00%> (ø)
molSimplify/Informatics/lacRACAssemble.py 47.26% <ø> (-0.07%) ⬇️
molSimplify/Scripts/convert_2to3.py 0.00% <0.00%> (ø)
molSimplify/Scripts/in_b3lyp_usetc.py 0.00% <0.00%> (ø)
... and 15 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ralf-meyer ralf-meyer merged commit 2b60ea1 into master Apr 27, 2023
10 checks passed
@ralf-meyer ralf-meyer deleted the code_quality branch April 27, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant