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

Checking that entry point arguments are of correct file type #183

Closed jacobcook1995 closed 2 weeks ago

jacobcook1995 commented 2 weeks ago

This pull request adds a check that the files supplied as arguments to entry points are the correct type before it tries to load them.

Fixes #180

jacobcook1995 commented 2 weeks ago

I assumed that using MIME types would be more robust that justing checking for a .xlsx extension, but that doesn't seem to be the case