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

<SRC FILE> not provided with default options #2

Closed
zanieb opened this issue Mar 22, 2024 · 2 comments
Closed

<SRC FILE> not provided with default options #2

zanieb opened this issue Mar 22, 2024 · 2 comments

Comments

@zanieb
Copy link
Member

zanieb commented Mar 22, 2024

❯ mkdir pre-commit-test
❯ cd pre-commit-test
❯ git init
Initialized empty Git repository in /Users/mz/workspace/pre-commit-test/.git/
❯ echo "anyio" > "requirements.in"
❯ git add requirements.in
❯ pre-commit try-repo https://github.com/astral-sh/uv-pre-commit
[INFO] Initializing environment for https://github.com/astral-sh/uv-pre-commit.
===============================================================================
Using config:
===============================================================================
repos:
-   repo: https://github.com/astral-sh/uv-pre-commit
    rev: 8830f06b90d5d856ee2d058a33ded4b6820ab925
    hooks:
    -   id: pip-compile
===============================================================================
[INFO] Installing environment for https://github.com/astral-sh/uv-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
pip-compile..............................................................Failed
- hook id: pip-compile
- exit code: 2

error: the following required arguments were not provided:
  <SRC_FILE>...

Usage: uv pip compile <SRC_FILE>...

For more information, try '--help'.
@CoderJoshDK
Copy link
Contributor

Default args would have to be provided. I guess it would make sense to have to at least handle the most common use case. And then require users to manually change it for their use case.


could become

args: [requirements.in]

I think it would also be fine to leave the README as is. Since ideally, the user will always just set up the args how they need it.

@zanieb
Copy link
Member Author

zanieb commented Mar 22, 2024

I'll leave this issue here for discoverability for people that encounter this error, but let's discuss defaults in #3.

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
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