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

68 correct validation description errors #70

Merged
merged 6 commits into from
Dec 28, 2023

Conversation

jcadam14
Copy link
Contributor

@jcadam14 jcadam14 commented Dec 5, 2023

These are all changes to make our python code consistent with the CVS located at https://raw.githubusercontent.com/cfpb/sbl-content/main/fig-files/validation-spec/2024-validations.csv

This goes hand in hand with issue #65

Of note is the addition of W0680, which checks the Census GEO id against the census CSV.

Majority of the changes involved missing spaces, copy/paste errors, etc.

The updates to this file are still in progress as there are 4 errors (E0940, E1120, E1300, E1480) that have descriptions that Chynna and Shomari are looking into to verify if the CSV is correct. So this PR is simply to get a head start.

Several changes and discrepancies existed between the python code and CSV.
This corrects those issues.
To pass the Ruff linter
To keep consistent with the CSV. This structure is stripped away
though during the automated testing in #65
Copy link

github-actions bot commented Dec 5, 2023

Coverage report

The coverage rate went from 92.94% to 92.94% ➡️
The branch rate is 89%.

100% of new lines are covered.

Diff Coverage details (click to unfold)

regtech_data_validator/phase_validations.py

100% of new lines are covered (100% of the complete file).

so the pytest passes and the code and csv are in sync
@jcadam14 jcadam14 self-assigned this Dec 21, 2023
Copy link
Collaborator

@lchen-2101 lchen-2101 left a comment

Choose a reason for hiding this comment

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

LGTM

@lchen-2101 lchen-2101 merged commit d9d1fd3 into main Dec 28, 2023
3 checks passed
@lchen-2101 lchen-2101 deleted the 68_correct_validation_description_errors branch December 28, 2023 18:06
jcadam14 added a commit that referenced this pull request May 3, 2024
These are all changes to make our python code consistent with the CVS
located at
https://raw.githubusercontent.com/cfpb/sbl-content/main/fig-files/validation-spec/2024-validations.csv

This goes hand in hand with issue #65 

Of note is the addition of W0680, which checks the Census GEO id against
the census CSV.

Majority of the changes involved missing spaces, copy/paste errors, etc.

The updates to this file are still in progress as there are 4 errors
(E0940, E1120, E1300, E1480) that have descriptions that Chynna and
Shomari are looking into to verify if the CSV is correct. So this PR is
simply to get a head start.
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.

2 participants