[Python] Issue with Renovatebot Updating All Dependencies in Poetry Python Project Despite...

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to update dependencies using Renovatebot for a Poetry Python project. I have configured the root configuration file to update only the selected packages and added an option to exclude the remaining packages from being updated. However, the bot is still updating all packages.

    Could you please help me resolve this issue?

    module.exports = {
    "platform": "azure",
    "onboardingPrTitle": `Renovate PR ${process.env.BUILDNUMBER}`,
    "prBody": "This PR updates dependencies to their latest versions.",
    "prTitle": `Renovatebot Update: ${process.env.BUILDNUMBER}`,
    "branchPrefix": "feature/",
    "endpoint": "https://dev.azure.com/Test",

    "token": process.env.RENOVATE_TOKEN,
    "hostRules": [
    {
    "matchHost": "pypi.org/simple",
    "hostType": "pypi",
    "enabled": true
    },
    {
    "matchHost": "pkgs.dev.azure.com/Test/_packaging/example/pypi/simple/",
    "hostType": "pypi",
    "enabled": true,
    "username": "textexample@example.com",
    "password": process.env.PYPI_PASSWORD
    }
    ],
    "packageRules": [
    {
    "updateTypes": ["major", "minor", "patch", "security"],
    "groupName": "all non-major and major updates"
    },
    {
    "matchPackageNames": [
    "python-multipart",
    "starlette",
    "aiohttp",
    "cryptography",
    "langchain-community",
    "setuptools"
    ],
    "enabled": true
    //"managers": ["poetry"]
    },
    {
    "matchPackagePatterns": ["*"],
    "enabled": false
    }
    ],
    //"enabledManagers": ["poetry"],
    //"poetry": {
    // "fileMatch": ["(^|/)pyproject.toml$"],
    // "enabled": true
    //},
    "lockFileMaintenance": {
    "enabled": true
    },
    "osvVulnerabilityAlerts" : "true",
    "onboarding": true,
    "onboardingConfig": {
    "extends": ["config:base"]
    },
    "branchPrefix": "feature/renovatebot-update/",
    "separateMajorMinor": false,
    "separateMinorPatch": false,
    "labels": ["dependencies"],
    "prConcurrentLimit": 5,
    "prHourlyLimit": 5,
    "schedule": ["at any time"],
    "rangeStrategy": "bump",
    "repositories": ["***/renovate-test-***"]
    };

    Continue reading...

Compartilhe esta Página