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

Leverage remote schemas by version number; test constraints #30

Merged
merged 32 commits into from
Jun 14, 2023

Conversation

e-lo
Copy link
Owner

@e-lo e-lo commented Jun 13, 2023

This PR provides the functionality to validate against a remote schema hosted on github by github reference (e.g. master HEAD, version tag, etc.). It also pulls out a "spec" as a class object to make it easier to pass around and abstract the differences between getting a spec from Github vs Local files.

This PR also:

  • formats code per pre-commit
  • refactors apply_schema_to_df into smaller functions
  • updates errors and warning to be more helpful (pointing to files, etc)
  • adds tests for field constraints in constraint_tests.py
  • adds assert statements to basic_tests.py

Code Submission Checklist

  • All public API changes, usage, and architecture changes are documented
  • All functions and modules have been documented using google-style docstrings
  • Code and documentation linted: pre-commit run --all-files
  • Code for this PR is covered in tests
  • Code passes all tests: pytest ❗ Tests that are not passing are due to errors in main spec repo. PRs correcting errors have been submitted for review.
  • By contributing to this project, all contributors certify to the Developer Certificate of Origin in CONTRIBUTING.md.

Documentation Submission Checklist

  • Documentation can be built locally mkdocs build
  • Documentation has been reviewed locally mkdocs serve
  • By contributing to this project, all contributors certify to the Developer Certificate of Origin in CONTRIBUTING.md.

Issues List

e-lo added 30 commits June 8, 2023 11:40
Also:
- adds code of conduct
- adds contributors
- updates github workflows
- Transfers documentation to mkdocs
- Adds contribution guidelines
- Adds code of conduct
- Adds contributors
- Updates github workflows

Closes #19 and #20
- templates are md not yaml
- leverage pre-commit
- lints json
Also:
- rename master --> main
- remove PR's from package releases
- fix capitalization of CONTRIBUTORS
- add logging; split up steps
- adds Workflows for doc gen, linting and testing
- updates docs to mkdocs
- adds governance, contribution guideines
- adds PR and issue templates
- adds pre-commit and linting

Closes: #22 #23 #21
Since docs aren't being built on PRs right now, this isn't needed.
Add GitHubFile, SpecConfig classes.
Structure there. Need to add/update tests and test test test.
And refactor constraint checking
@e-lo e-lo self-assigned this Jun 13, 2023
- also add mermaid ERD diagrams
@e-lo e-lo changed the base branch from main to develop June 14, 2023 00:34
@e-lo e-lo merged commit 2918316 into develop Jun 14, 2023
@e-lo e-lo deleted the remote-schemas branch June 14, 2023 00:40
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.

🚀 Validate by Spec Version Number 🚀 Pull spec from official repo
1 participant