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")
Exemple #2
0
 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")
Exemple #3
0
 def check(self):
     if not self.repository.data.topics:
         raise ValidationException("The repository has no description")