Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependabot does not update .pre-commit-config.yaml #2

Open
StevenMaude opened this issue Sep 6, 2022 · 1 comment
Open

Dependabot does not update .pre-commit-config.yaml #2

StevenMaude opened this issue Sep 6, 2022 · 1 comment

Comments

@StevenMaude
Copy link

This repository has an auto-merge Dependabot PR workflow. For the Python tooling we use — for example, black, flake8, isort — versions are specified in both requirements files, and the .pre-commit-config.yaml.

Why is this an issue? The two specified versions may get out of sync, unless the .pre-commit-config.yaml is manually updated. If versions do get out of sync, there's a small risk that they have conflicting behaviour. For example, the linter/formatter installed from requirements thinks some code is perfectly fine, but the pre-commit version doesn't.

A workaround that others use is to maintain sync is to have another workflow running pre-commit autoupdate on a schedule.

There is a Dependabot feature request. At time of writing, the request is approaching its third birthday.

@amarvin
Copy link

amarvin commented Jun 12, 2024

Relates to dependabot/dependabot-core#1524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants