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
Extend exclude option #4461
Comments
Pyright already exports an |
This isn't about just exclude, this is about being able to add values to that exclude without having to either know or copy them out see psf/black#2005 |
The list of default excludes for pyright is short, and they are sufficient for nearly all users. The explicit |
Example of proper
|
const defaultExcludes = ['**/node_modules', '**/__pycache__', '**/.*']; |
and configuring your Python environment docs and venv
related docs (eighth and ninth options down), seems to mostly reassure us of that.
Anyways, I just happened upon this confusion when trying to troubleshoot some Pylance slowdowns, and wasn't 100% sure that Pylance was skipping my virtual environment directory.
Yeah, if you'd like to submit a PR, that'd be fine. |
Is your feature request related to a problem? Please describe.
An option to extend the default excluded paths would be really useful as you can just add a couple of untyped or hard to type files to the default list of exclude.
Describe the solution you'd like
A config file option which adds support for extending the default exclude value to simply add extras to the default exclude.
Additional context
Other programs like black and isort both support this flag
The text was updated successfully, but these errors were encountered: