Validator resource for checking datasets against the FOCUS specification.
tbd
- Python 3.9+
- Poetry (Package & Dependency Manager)
If you haven't installed Poetry yet, you can do it by running:
curl -sSL https://install.python-poetry.org | python3 -For alternative installation methods or more information about Poetry, please refer to the official documentation.
git clone https://github.com/finopsfoundation/focus-spec-validator.git
cd focus-spec-validatorUsing Poetry, you can install the project's dependencies with:
poetry installActivate the virtual environment:
poetry shellValidations can be run using cli application focus-validator.
For help and more options:
focus-validator --helpIf you have tests for your project, you can run them with:
poetry run pytestEnsure you have pytest defined as a development dependency in your pyproject.toml.
If running on legacy CPUs and the tests crash on the polars library, run the following locally only:
poetry add polars-lts-cpuThis will align the polars execution with your system hardware. It should NOT be committed back into the repository.
This project is licensed under the MIT License - see the LICENSE file for details.