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

Cleaning and Tests #19

Merged
merged 17 commits into from
Mar 18, 2023
Merged

Cleaning and Tests #19

merged 17 commits into from
Mar 18, 2023

Conversation

jatkinson1000
Copy link
Owner

@jatkinson1000 jatkinson1000 commented Mar 18, 2023

Cleaning with black, pylint, refurb, pydocstyle (numpy) for a better codebase.

Adding testing:

Will close #18

@jatkinson1000 jatkinson1000 added enhancement New feature or request Testing Addition of tests labels Mar 18, 2023
@jatkinson1000 jatkinson1000 self-assigned this Mar 18, 2023
@jatkinson1000
Copy link
Owner Author

So far checking with coverage:
100% Targets
100% Rounds
78% handicap equations - only missing loading from json

21% handicap functions - needs tests for root finding, missing print from handicap table

Consider opening a fresh issue for adding classification tests as this is a relatively large job.

@jatkinson1000
Copy link
Owner Author

Found bug in calculation of integer precision of negative handicaps whilst writing tests.
Fixed.

handicap functions coverage now at 68% only missing print_table function and a couple of untriggered parts of rootfinding algorithm.

Opened issues #22 highlighting lack data for of AA2 tests and #23 requesting classification tests as this PR is already large.

@jatkinson1000 jatkinson1000 merged commit 50c616d into main Mar 18, 2023
@jatkinson1000 jatkinson1000 deleted the cleaning branch March 21, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Testing Addition of tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete lack of testing
1 participant