ImperialCollegeLondon / safedata_validator

Python tools to validate and publish datasets using the safedata metadata format.
https://safedata-validator.readthedocs.io/
MIT License
2 stars 4 forks source link

Validation passes with no worksheets #144

Closed davidorme closed 4 months ago

davidorme commented 4 months ago

This fixes #143:

The original logic was hopelessly confused about the order in which it tackled problems. It now follows a much clearer system:

I've also tacked on the removal of pytest-flake8: running flake8 during pytest needlessly duplicates the pre-commit hook and the pytest-flake8 package relies on a seriously outdated version of flake8 (4.0.1 versus current 7.0.0). Our pre-commit hook has been auto-updated to 7.0.0 so retaining this in pytest is both pointless and divergent.