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

Move validation code to a new validators.py module #169

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

tompollard
Copy link
Owner

Refactoring for readability. This pull request moves code for validating input data and arguments to a new "validators.py" module.

validators.py has two classes:

  • DataValidator: code for checking the dataset
  • InputValidator: code for checking the arguments (should I have called this something like ArgumentValidator?)

The old validation code did some type manipulation (e.g. if groupby was provided as a list, it would be silently converted to a str). I have removed this code for now, and will work out what to do with it later.

@tompollard tompollard merged commit 56abb3e into main Jun 5, 2024
2 checks passed
@tompollard tompollard deleted the tp/validator_refactor branch June 5, 2024 20:51
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