-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support globbing patterns for source-roots #8290
Comments
There's also |
@Pierre-Sassoulas that's different story since this one is only about values passed to To achieve globbing patterns support for input specification, |
My concern is that we have multiple ways to do the same things and it permits to do a lot of thing but also becoming really complicated at this point. I've been a maintainer for more than 5 years and I'm unclear on what should be done if pre-commit or find is not feeding file directly to pylint, this can't be a good sign. I added the need specification label so we think about the option related to file discovery and try to make them work together and be consistent. In #5701 the consensus was that the default should be "current directory". But should we make recursive=y if there's no |
I don't really see a link between the concern which is valid yet outside of the scope of this issue. This issue only relates to enhancing what can be specified via I truly think that the concern you've raised worth a separate discussion. |
That said, let's open a new RFC to discuss the concern of input discovery. Yet I should note that |
@Pierre-Sassoulas I don't think this deserves 3.0.0 milestone really since it does not constitute a breaking change |
Yeah sorry, it's not a breaking change issue, it's just that I have too much on my plate and I don't anticipate to be able to deal (=discuss specs) before releasing 2.17.0. |
Even taking into account that the original feature of source roots (to which this one is an improvement) was introduced at most a week ago? |
If another maintainer is available for discussion I'll trust their judgement on this. |
Sorry, my mistake! I agree that this would be a nice change! |
Current problem
It's quite inconvenient having to specify every source root for complex multi-package projects like
--source-roots src/package1,src/package2,...,src/packageN
Desired solution
For complex multi-package projects it would be nice to be able to specify source roots as
--source-roots src/*
instead of listing every one of them. IMHO, it's better to go with globbing patterns rather than with regexp patterns since those give better support for path-specific matching.Additional context
No response
The text was updated successfully, but these errors were encountered: