Buckets:
| from __future__ import annotations | |
| from typing import TYPE_CHECKING | |
| from .base import ActionValidationBase, ValidationException | |
| if TYPE_CHECKING: | |
| from ..repositories.base import HacsRepository | |
| async def async_setup_validator(repository: HacsRepository) -> Validator: | |
| """Set up this validator.""" | |
| return Validator(repository=repository) | |
| class Validator(ActionValidationBase): | |
| """Validate the repository.""" | |
| more_info = "https://hacs.xyz/docs/publish/include#check-repository" | |
| allow_fork = False | |
| async def async_validate(self) -> None: | |
| """Validate the repository.""" | |
| if not self.repository.data.has_issues: | |
| raise ValidationException("The repository does not have issues enabled") | |
Xet Storage Details
- Size:
- 743 Bytes
- Xet hash:
- 363e82ae9798d43a6d30ddc3e7a885ffde69c2e656684ce824254ccfc5d403a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.