-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consider adding more patterns to files.exclude #21374
Comments
Maybe this is something the python extension wants to introduce, cc @brettcannon @isidorn . No plans currently to add any to the core defaults. |
We could at least add this to the Python Profiles @luabud |
Agree with adding it to the Python profile.
|
It's seems rather broad (i.e., I don't know if all of those coverage-related ones are used by coverage.py), but otherwise the list seems reasonable. |
I'm not sure I'd stick coverage.xml in there- even though I do typically gitignore it, I sometimes look at it (being an XML file, it's grokkable). I looked at one just last week. And if htmlcov is the HTML report, I'd also leave that off. |
Noted. How about
|
That looks good, yes, assuming that .tox and .nox are correct, I haven't used those tools myself. I just double checked .hypothesis/ and it doesn't look like a directory a human would want to peruse:
(With each of the leaf files being binary data, not human readable) So if you feel good about .tox/.nox, I think it's a good list. |
I can confirm both are correct for those tools. |
Should I just transfer this issue over to the Python extension at this point if there's not going to be any updates on the core side? |
Yes, I think that makes most sense. Thanks Brett! |
I find that I've been modifying files.exclude in my dev containers recently to exclude
ruff_cache, .coverage, pytest_cache, and .pyc files
I am wondering if you'd consider adding them to the default files.exclude, or if there's any other easy way for Python devs to easily exclude them (without having to learn glob syntax, which I must admit, I still haven't truly learnt).
The text was updated successfully, but these errors were encountered: