Skip to content

Instantly share code, notes, and snippets.

@GuyKh
Created September 24, 2024 08:04
Show Gist options
  • Save GuyKh/fa5ed2fd01e4bf01e02a2ecffd9e52f0 to your computer and use it in GitHub Desktop.
Save GuyKh/fa5ed2fd01e4bf01e02a2ecffd9e52f0 to your computer and use it in GitHub Desktop.
renovate.json for Home Assistant Custom Components Repositories
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"packageRules": [
{
"matchDatasources": ["pypi"],
"matchPackageNames": ["homeassistant"],
"enabled": false
},
{
"matchDatasources": ["pypi"],
"matchPaths": ["requirements.txt"],
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^custom_components/.+/manifest\\.json$"],
"matchStrings": ["\"requirements\":\\s*\\[(\\s*\"(?<depName>[^\"]+)(?<versioning>(==|>=|<=))(?<currentValue>[0-9\\.]+)\"[,\\s]?)*\\]"],
"versioningTemplate": "python",
"depNameTemplate": "{{depName}}",
"datasourceTemplate": "pypi"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment