Skip to content

Conversation

@mpiercy827
Copy link
Contributor

Goal

The goal of this PR is to continue refactoring functionality into the neucbot/ package to improve performance and allow for this functionality to be easily ported into a neucbot-web project (which does not exist yet.

Changes

  • Pulls out AlphaList functionality from the recently created neucbot/ensdf.py file into neucbot/alpha.py, to be built upon in subsequent PRs.
  • Adds black as a Python linter and includes it in the Github Action required to merge PRs.
  • Runs black on all the files in neucbot/* and tests/* and checks in those changes.

Continues the refactoring started in
shawest#15 with the goal of making
NeucBOT easier to host in a web interface.

This commit pulls out some AlphaList functionality into the
neucbot/alpha.py file, which will be added to in subsequent PRs.

The next step is to continue moving functions from neucbot.py into
neucbot/alpha.py until neucbot/ becomes a standalone package that can be
used in a separate neucbot-web project.
This commit adds black as a dependency to ensure that code is properly
formatted. This linter will be used as part of the Github Action
workflow, ensuring that any new code checked into the neucbot/ and
tests/ directories is properly formatted.
This commit cleans up the getAlphaListIfExists function from neucbot.py
and moves it to the AlphaList class, and adds unit tests to cover the
success and failure cases.
Ensure that tokens are parsed as floats, not as strings
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.

1 participant