Skip to content

Instantly share code, notes, and snippets.

@oeeckhoutte
Last active January 2, 2023 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oeeckhoutte/21bd340170d690355393b0f84d8e6167 to your computer and use it in GitHub Desktop.
Save oeeckhoutte/21bd340170d690355393b0f84d8e6167 to your computer and use it in GitHub Desktop.
Simple .gitignore I am using for my Python projects
# https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
.ipynb_checkpoints
.envrc
.dvc
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
.direnv/
.direnv
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
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
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
reports
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
coverage/
cov.xml
.pytest_cache/
test-cov.xml
test-output.xml
# Translations
*.mo
*.pot
# Django stuff:
*.log
.static_storage/
.media/
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
docs/README.RST
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# 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/
.idea/
# emacs tempory files
*~
.vscode
.DS_Store
node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment