Skip to content

Commit

Permalink
update with documented template .gitignore for Python projects
Browse files Browse the repository at this point in the history
GitHub provides a handy template .gitignore for Python projects. As it's comprehensive and
documented, let's use it.

This improves support for developers using virtualenv, pip install -e . and other use cases.

From: https://github.com/github/gitignore/blob/master/Python.gitignore

The following two manual additions that this repository carried have been preserved:
 - dev_* (4c0e229 "added dev_* to gitignore")
 - .idea (df2ba52 "Add a todo")
  • Loading branch information
Echelon9 committed Nov 15, 2018
1 parent 15ce952 commit 3ca56f7
Showing 1 changed file with 112 additions and 7 deletions.
119 changes: 112 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,118 @@
.idea/
*.pyc
/*.egg-info
/dist/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# 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

.cache/
# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

dev_*
# PyBuilder
target/

.pytest_cache/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

.idea/
dev_*

0 comments on commit 3ca56f7

Please sign in to comment.