Last active
April 8, 2017 21:40
-
-
Save DavidMetcalfe/3ee120351cb4a44632979be4740712c8 to your computer and use it in GitHub Desktop.
Generalized .gitignore file for Python projects with emphasis on ignoring packaging and OS files. Original taken from https://github.com/github/gitignore
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# celery beat schedule file | |
celerybeat-schedule | |
# Distribution / packaging | |
.Python | |
env/ | |
build/ | |
develop-eggs/ | |
dist/ | |
downloads/ | |
eggs/ | |
.eggs/ | |
lib/ | |
lib64/ | |
parts/ | |
sdist/ | |
var/ | |
wheels/ | |
*.egg-info/ | |
.installed.cfg | |
*.egg | |
# Django stuff: | |
*.log | |
local_settings.py | |
# dotenv | |
.env | |
# Flask stuff: | |
instance/ | |
.webassets-cache | |
# Installer logs (PIP general) | |
pip-log.txt | |
pip-delete-this-directory.txt | |
pip-selfcheck.json | |
# Jupyter Notebook | |
.ipynb_checkpoints | |
# pip | |
pip-selfcheck.json | |
# pyenv | |
.python-version | |
# PyBuilder | |
target/ | |
# PyInstaller | |
# Usually these files are written by a python script from a template | |
# before PyInstaller builds the exe, so as to inject date/other infos into it. | |
*.manifest | |
*.spec | |
# Rope project settings | |
.ropeproject | |
# Scrapy stuff: | |
.scrapy | |
# Sphinx documentation | |
docs/_build/ | |
# Spyder project settings | |
.spyderproject | |
# Translations | |
*.mo | |
*.pot | |
# Unit test / coverage reports | |
htmlcov/ | |
.tox/ | |
.coverage | |
.coverage.* | |
.cache | |
nosetests.xml | |
coverage.xml | |
*,cover | |
.hypothesis/ | |
# venv | |
Include/ | |
Lib/ | |
Scripts/ | |
pyvenv.cfg | |
# virtualenv | |
.venv/ | |
venv/ | |
ENV/ | |
# ========================= | |
# Operating System Files | |
# ========================= | |
# Windows | |
# ========================= | |
desktop.ini | |
Thumbs.db | |
ehthumbs.db | |
*.cab | |
*.msi | |
*.msm | |
*.msp | |
*.lnk | |
# OSX | |
# ========================= | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Thumbnails | |
._* | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk | |
# ========================= | |
# Project-specific ignores (if any) | |
# ========================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment