Skip to content

Local Variables Assigned and Never Used #52

@harryswift01

Description

@harryswift01

While going through the process of implementing CI and adding the pre-commit hooks there were some files that had local variables assigned but never used:

  • CodeEntropy/poseidon/analysis/EECalculation.py
  • CodeEntropy/poseidon/analysis/EntropyFunctions.py
  • CodeEntropy/poseidon/extractData/generalFunctions.py
  • CodeEntropy/poseidon/extractData/readFiles.py
  • Example/create_new_universe.py

For now I have used extend_ignore code F841 within pyproject.toml to ignore these undefined variable names as at present I'm unsure if this is complete code. In order to keep with standard practice there should be no local variable that is assigned and never used, if they are no longer relevant they should be removed if not they should be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions