Last active
September 18, 2024 17:40
-
-
Save NostraDavid/743a901376660c5a2b01c1d83b4d34ed to your computer and use it in GitHub Desktop.
Whitelisting gitignore, instead of the default blacklisting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ignore all root items, not recursively | |
/* | |
# whitelist dirs | |
!docs | |
!example_data | |
!requirements | |
!src | |
!tests | |
# whitelist files | |
!.env.dist | |
!.gitattributes | |
!.gitconfig | |
!.gitignore | |
!.pre-commit-config.yaml | |
!MANIFEST.in | |
!pyproject.toml | |
!README.md | |
!Requirements.md | |
!setup.py | |
!tox.ini | |
# recursively blacklist these (in case they pop up in a whitelisted folder) | |
__pycache__ | |
*.egg-info | |
*.pyc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment