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

Update pre-commit repos #153

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

jarrodmillman
Copy link
Member

@jarrodmillman jarrodmillman commented Jan 19, 2024

import yaml
import subprocess

file = ".pre-commit-config.yaml"

with open(file) as f:
    data = yaml.safe_load(f)

repos = []
for repo in data["repos"]:
    if "mirrors-prettier" not in repo["repo"]:
        repos.append("--repo")
        repos.append(repo["repo"])

command = ["pre-commit", "autoupdate", "--freeze"] + repos
subprocess.call(command)

@jarrodmillman jarrodmillman added the type: Maintenance Refactoring and maintenance of internals label Jan 19, 2024
@jarrodmillman jarrodmillman changed the title Update pre-commit Update pre-commit repos Jan 19, 2024
@jarrodmillman jarrodmillman merged commit e73d7d7 into scientific-python:main Jan 19, 2024
17 checks passed
@jarrodmillman jarrodmillman added this to the 0.9 milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant