-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Rye lint command emits redundant output in workspaces #973
Comments
If we are including the root pyproject in I only skimmed Rye's lint/workspace logic, but isn't it effectively running this?
So if we find that the current directory is one of the projects why don't we collapse the command to it? Edit: Or rather just collapse the paths into common roots. |
I've PR'd what might resolve If anyone is interested in this feel free to beat me to it. I'm not sure when I'll be able to pick this back up. My time can open up randomly. If it does I'll try to finish it out. It'd be nice to add some tests as well. |
This is a similar issue to #858 where pytest is run at the root collecting anything it sees I proposed that we mimic cargo in the workspace case meaning the command should not run the root but each sub package individually. |
Steps to Reproduce
See this repo for a MWE https://github.com/cnpryer/rye-lint-mwe or use the following steps to reproduce it yourself:
Add the following import:
Add the subproject to the pyproject workspace members
With the member excluded:
Expected Result
It should emit 1 error.
Actual Result
It emits 2 errors.
Version Info
Stacktrace
No response
The text was updated successfully, but these errors were encountered: