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

fix rye config --show-path #706

Merged
merged 7 commits into from Feb 21, 2024
Merged

fix rye config --show-path #706

merged 7 commits into from Feb 21, 2024

Conversation

dsp
Copy link
Contributor

@dsp dsp commented Feb 20, 2024

This fixes an issue where rye config --show-path will not work. This
regression was originally introduced in #660.

This PR now makes --show-path conflicting with any other flag, and groups action and format flags into an ArgGroup. We added integration tests to continuously ensure the behavior is correct.

dsp added a commit to dsp/rye that referenced this pull request Feb 20, 2024
@dsp dsp marked this pull request as ready for review February 20, 2024 09:19
@mitsuhiko
Copy link
Collaborator

Now that we have a basic test infrastructure, could you add a test for this?

@dsp
Copy link
Contributor Author

dsp commented Feb 20, 2024 via email

PR astral-sh#660 (ff130c4) makes an action argument required. This breaks `rye
config --show-path`. This fixes this behavior by requiring any argument,
but showing help when no argument is provided.

fix
Some tests, such as testing rye config, do not require a project,
hence init can be unused.
Add a filter for [RYE_HOME]. This will be used for outputs such as
`rye config --show-path`
We add configuration tests as an integration insta test, as we
want to go through the whole process.
@mitsuhiko mitsuhiko merged commit 33454c4 into astral-sh:main Feb 21, 2024
6 checks passed
@dsp dsp deleted the fix-config branch February 22, 2024 16:29
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 this pull request may close these issues.

None yet

2 participants