data-to-insight / csc-validator-be-cin

1 stars 1 forks source link

CIN-validator

The CIN validator is an open source, volunteer built tool that allows users to validate CIN census data year round via the command line, or using the browser based front end (URL HERE). It also provides a framework which other validation tools can easily be built on top of.

The functions are documented using sphinx format so that a docs website can be auto-generated if need be. Also, there is an increased use of python type-hints as a form of intrinsic documentation. This does not apply to test functions as they neither receive nor return data, in the strict sense. More extensive documentation can be found here: https://data-to-insight.github.io/CIN-validator/

Setup

This repo can be opened and run in a codespaces instance or cloned locally using git clone https://github.com/data-to-insight/CIN-validator.git If it is cloned locally, use pre-commit install to install the pre-commit hooks.

Run

Yearly tool updates

Update rule resources

Update rules

Make changes available to user

This part is a guide on how to update the frontend so that it reflects the changes that have been done in the backend.

Notes about choosing version numbers

When changes are rules updates (add/delete/modify) or bug fixes, only the last part of the version number should be updated (e.g v0.1.9 becomes v0.1.10).
The middle number is only updated when new features have been added (the changes enable user functionality that was not previously available).
Finally, the first part of the version number is changed when breaking changes are present (new version of tool is incompatible with previous version e.g when functions in the api, rpc_main.py, change.) Read more about semantic versioning here.