This repository was archived by the owner on Dec 8, 2025. It is now read-only.
Finalise structure and clean things up#38
Merged
daffidwilde merged 4 commits intodev-0.0.1from Oct 31, 2023
Merged
Conversation
daffidwilde
added a commit
that referenced
this pull request
Nov 29, 2023
* Set up GitHub Actions (#33) * Add a basic CI workflow * Fix syntax error in pyproject.toml * Remove tkinter from dependencies (it's standard) * Bump minimum Python version to 3.8 `pandas@2.0.3` requires Python 3.8+ * Separate dependencies * Add lint-checker to CI * Configure ruff and get linters to pass * Update module names for tests * Fix tests to reflect changes in implementation * Run linters on source * Remove erroneous check flag from ruff in CI * Record API constants (#34) * Write a test for creating an instance * Create a file for the constants to live in * Remove mention of constant data from API * Add a workflow to check the constants every week * Format wrapper module * Format constants checker * Add documentation for logger parameter * Write tests for response processing * Move response processor to use warnings * Write test for get() * Update doc-string for get() * Write tests for table querist and its extractor * Implement table querist Rather than having a generic `query_api` method, it would be good to be descriptive. Then we can have methods that match up with each endpoint of the API * Fix typos in strategies and doc-strings * Format strategies test module * Fix typo in constants checker * Fix imports in api checker * Remove summary functions These can be found by making national-level queries for columns. * Write tests for querying area type metadata * Implement area type metadata querist * Use area type querist in api checker * Implement population querist (and valid test) * Write test for invalid population types querist * Write tests for one-shot areas querist * Write areas querist helper tests * Implement area types area querist and helper * Refactor tests into single feature querist No need for an area type and dimension querist when they do the same thing at different endpoints. * Write tests for generic category querist * Implement querists for features and categories * Finalise structure and clean things up (#38) * Use new querists in checker; run it on dev pushes * Add coverage to CI & fix typo in constants wflow * Remove interface from __init__ * Fill out the rest of the QA checklist * Rename constants workflow * Remove cache directories from version control * Write some documentation (#40) * Update README and add a LICENSE file * Update README to include limitations; fix URLs * Add changelog and citation files * Add in Quarto files (these may need changing) * Update constants and checker error messages. More Welsh area types have been added - excellent! I've also sorted the collections in assertion errors. --------- Co-authored-by: EdCussONS <148250246+EdCussONS@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #18 - or at least the stragglers!
Just a little tidy up so the repository includes all and only the necessary parts.