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

Fixes issues identified by ruff and flake8 in pbe.py #56

Merged
merged 9 commits into from
Dec 13, 2024

Conversation

ShaunWeatherly
Copy link
Contributor

Addresses warnings of type F841 and PLC0415 in module pbe.py. Also changes an ambiguous variable name I to the more descriptfidx.

Full breakdown:
src/quemb/kbe/pbe.py:498:9: F841 Local variable EH1 is assigned to but never used
src/quemb/kbe/pbe.py:499:9: F841 Local variable ECOUL is assigned to but never used
src/quemb/kbe/pbe.py:500:9: F841 Local variable EF is assigned to but never used
src/quemb/kbe/pbe.py:672:17: F841 Local variable eh1 is assigned to but never used
src/quemb/kbe/pbe.py:672:22: F841 Local variable ecoul is assigned to but never used
src/quemb/kbe/pbe.py:672:29: F841 Local variable ef is assigned to but never used
src/quemb/kbe/pbe.py:899:5: PLC0415 import should be at the top-level of a file
src/quemb/kbe/pbe.py:911:5: PLC0415 import should be at the top-level of a file

src/quemb/kbe/pbe.py Outdated Show resolved Hide resolved
src/quemb/kbe/pbe.py Show resolved Hide resolved
@mscho527
Copy link
Member

Resolves #44

ShaunWeatherly and others added 3 commits December 12, 2024 15:29
Also renamed `Frags.energy` to `Frags.update_ebe`.
In both cases this makes the purpose and side-effects of the function
more clear. Note that Frags.energy does not appear to be used anywhere
in the code, however.
(happened after talking to Shaun)
Copy link
Contributor

@mcocdawc mcocdawc left a comment

Choose a reason for hiding this comment

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

cool cool nice nice

@ShaunWeatherly ShaunWeatherly merged commit 3ea792b into main Dec 13, 2024
4 checks passed
@ShaunWeatherly ShaunWeatherly deleted the pbe_ruff_fixes branch December 13, 2024 15:04
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.

3 participants