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

uv lock for pyproject in subfolder #15

Open
eavanvalkenburg opened this issue Aug 27, 2024 · 2 comments · May be fixed by #38
Open

uv lock for pyproject in subfolder #15

eavanvalkenburg opened this issue Aug 27, 2024 · 2 comments · May be fixed by #38

Comments

@eavanvalkenburg
Copy link

I'm working in a mono-repo and have the pyproject.toml sitting in a subfolder, is there a way to specify this for the uv-lock hook?

@spwoodcock
Copy link

You can do this:

  - repo: https://github.com/astral-sh/uv-pre-commit
    rev: 0.5.2
    hooks:
      - id: uv-lock
        files: path/to/project/pyproject.toml
        args: [--project, path/to/project]

@daturkel
Copy link

This might be worth putting in the readme!

spwoodcock added a commit to spwoodcock/uv-pre-commit that referenced this issue Jan 13, 2025
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

Successfully merging a pull request may close this issue.

3 participants