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

Add Unit Testing and Formatter #13

Merged
merged 5 commits into from
Oct 11, 2022
Merged

Add Unit Testing and Formatter #13

merged 5 commits into from
Oct 11, 2022

Conversation

jdholtz
Copy link
Owner

@jdholtz jdholtz commented Oct 11, 2022

This PR adds a few developer conveniences, but no features to the actual script.

The following was added:

  • 100% unit testing coverage
  • Automatic code formatting with black and isort using a pre-commit hook
  • Workflows to run unit tests in python versions 3.7 - 3.10 and format automatically (workflow will fail if the code isn't formatted correctly)

My goal is to keep this project at 100% test coverage by adding new tests in the same commit (or the next one) as a feature implementation.

I also will consider adding a workflow to lint the application using pylint

This commit adds unit tests with 100% test coverage
This commit mostly formats the files according to black's standards. It
also sorts imports according to isort.

A GitHub workflow was added to format on a push and a pre-commit config
was added to run formatting before a commit.

Lastly, a test in `test_account` was fixed because it was not working in
python 3.7
Add paths/branches so the workflows only run when we want them to

Also, fail the test workflow if the coverage is under 100%
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