pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.34k stars 1.14k forks source link

Add `__pycache__/` to `.gitignore` #4325

Open Avasam opened 3 weeks ago

Avasam commented 3 weeks ago

Summary of changes

Running tox locally leaves a lot of files behind in __pycache__ folders. image This PR adds the cache folder to the .gitignore, since this is specific to this project (using tox) and not my personal environment.

Pull Request Checklist

[PR docs]: https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request

abravalheri commented 1 week ago

https://blog.jaraco.com/skeleton/#ignoring-artifacts does mention __pycache__ in the suggested .gitignore_global, so by that logic, this line would not be necessary...

However there is precedent (the currently ignored *.pyc, .mypy_cache, .pytest_cache, etc...). So I will defer this one to Jason 😅.