Buckets:
64.7 MB
2,756 files
Updated 6 minutes ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| README.md | 862 Bytes xet | 9b78d016 | |
| __init__.py | 29 Bytes xet | 447cae55 | |
| archived.py | 718 Bytes xet | 60394e95 | |
| base.py | 1.52 kB xet | 1bd707b3 | |
| brands.py | 1.04 kB xet | 7ee0c5c7 | |
| description.py | 734 Bytes xet | d1b5aa66 | |
| hacsjson.py | 1.45 kB xet | 677ff47d | |
| images.py | 1.13 kB xet | 1461271d | |
| information.py | 958 Bytes xet | 4bc751f9 | |
| integration_manifest.py | 1.38 kB xet | d31b08c6 | |
| issues.py | 743 Bytes xet | 363e82ae | |
| manager.py | 2.77 kB xet | 0826b6cb | |
| topics.py | 730 Bytes xet | 7d0eff43 |
Repository validation
This is where the validation rules that run against the various repository categories live.
Structure
- There is one file pr. rule.
- All rule needs tests to verify every possible outcome for the rule.
- It's better with multiple files than a big rule.
- All rules uses
ActionValidationBaseas the base class. - Only use
validateorasync_validatemethods to define validation rules. - If a rule should fail, raise
ValidationExceptionwith the failure message.
Example
from .base import (
ActionValidationBase,
ValidationBase,
ValidationException,
)
class SuperAwesomeRepository(ActionValidationBase):
category = "integration"
async def async_validate(self):
if self.repository != "super-awesome":
raise ValidationException("The repository is not super-awesome")
- Total size
- 64.7 MB
- Files
- 2,756
- Last updated
- Jul 31
- Pre-warmed CDN
- US EU US EU