Maybe we can use https://github.com/tonchis/hatch for this kind of validations, and we can thank @tonchis for it