Open as1729 opened 7 months ago
@as1729 Will see about getting a test file so I can write tests, but is this what you had in mind for refactoring? 5f5a1b789018d32c80324dc9432620c7f23fb1f8 Should be mostly the same from what you have above, just making sure I'm doing what's expected here.
yup code looks well-organized. When I added the typings I wasn't sure if it was correct so I would double-check those pieces as well. I also didn't add return-types for some of these functions which would be good to add.
Why is this issue important?
See User Story here https://github.com/usdigitalresponse/cpf-reporter/issues/73
This is an issue in the sequence of tickets to ensure the CPF reporter can accept a user-submitted upload file and receive feedback on any errors that are present in the submitted file data.
Current State
There exists
pydantic
schema and prototype code that can load an excel file from a local machine and generate any errors.This is the starting point: https://github.com/usdigitalresponse/cpf-reporter/pull/140/files#diff-b4bb27ac77a4277d0f1dd4db4e158e07418c6dff86bee251c51c1891e2c21ec9
Expected State
Take this existing schema and code and translate it into:
Implementation Plan
Here is the link to the code that needs to be refactored and tested: https://github.com/usdigitalresponse/cpf-reporter/pull/140/files#diff-b4bb27ac77a4277d0f1dd4db4e158e07418c6dff86bee251c51c1891e2c21ec9
Relevant Code Snippets
No response