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