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

Feature request: pre-commit hook to update codemeta.json #38

Open
apirogov opened this issue Mar 27, 2023 · 1 comment
Open

Feature request: pre-commit hook to update codemeta.json #38

apirogov opened this issue Mar 27, 2023 · 1 comment

Comments

@apirogov
Copy link

It would be great if codemetapy could be used as a pre-commit hook to automatically synchronize e.g. pyproject.toml to the codemeta.json.

Currently I have to add it to my dev dependencies and do this:

  - repo: local
    hooks:
      - id: codemetapy
        name: codemetapy
        language: system
        entry: poetry run codemetapy -O codemeta.json
        files: ^pyproject.toml$

Ideally, I could just point it to this repository any other hook

  - repo: https://github.com/proycon/codemetapy
    rev: 'X.Y.Z'
    hooks:
      - id: codemetapy

and it should do something "smart" by default 🙂

@proycon
Copy link
Owner

proycon commented Sep 18, 2023

I like this idea, I'd have to brush up on pre-commits hooks though. Pull requests welcome!

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