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

Fix more pylint warnings #143

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Fix more pylint warnings #143

merged 1 commit into from
Mar 22, 2023

Conversation

yut23
Copy link
Collaborator

@yut23 yut23 commented Mar 22, 2023

Fix a spurious divide-by-zero error in sedov_compare.py and gauss_diffusion_compare.py that pylint found. Most of the other fixes are for unused-variable, plus some instances of consider-using-enumerate, consider-using-dict-items, consider-iterating-dictionary, use-dict-literal, useless-object-inheritance, and unneeded-not.

Also disable pointless-string-statement, since these are used for block comments in a couple places.

Fix a spurious divide-by-zero error in sedov_compare.py and
gauss_diffusion_compare.py that pylint found. Most of the other fixes
are for `unused-variable`, plus some instances of
`consider-using-enumerate`, `consider-using-dict-items`,
`consider-iterating-dictionary`, `use-dict-literal`,
`useless-object-inheritance`, and `unneeded-not`.

Also disable `pointless-string-statement`, since these are used for
block comments in a couple places.
@zingale zingale merged commit 0e5ca9f into python-hydro:main Mar 22, 2023
@yut23 yut23 deleted the pylint_fixes_2 branch March 23, 2023 23:46
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.

2 participants