async def async_check(self): filenames = [x.filename.lower() for x in self.repository.tree] if self.repository.data.render_readme and "readme" in filenames: pass elif self.repository.data.render_readme and "readme.md" in filenames: pass elif "info" in filenames: pass elif "info.md" in filenames: pass else: raise ValidationException("The repository has no information file")
def check(self): if "manifest.json" not in [x.filename for x in self.repository.tree]: raise ValidationException("The repository has no 'hacs.json' file")
def check(self): if not self.repository.data.topics: raise ValidationException("The repository has no description")