Skip to content

Instantly share code, notes, and snippets.

@GhostofGoes
Created October 4, 2018 04:29
Show Gist options
  • Save GhostofGoes/94580e76cd251972b15b4821c8a06f59 to your computer and use it in GitHub Desktop.
Save GhostofGoes/94580e76cd251972b15b4821c8a06f59 to your computer and use it in GitHub Desktop.
Basic .gitignore template for Python projects
# Editors
.vscode/
.idea/
# Vagrant
.vagrant/
# Mac/OSX
.DS_Store
# Windows
Thumbs.db
# Source for the following rules: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
# 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/
*.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/
.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/
# PyBuilder
target/
# 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
@alexmorphism
Copy link

Thank you, Mr. GhostofGoes!

@Riki1200
Copy link

Thanks you, bro.

@DStraniti
Copy link

Thanks!

@mohamed-sayed-abdallah
Copy link

thanks

@leduanb92
Copy link

Thanks a lot!!! Very helpful

@xfsm1912
Copy link

xfsm1912 commented Mar 1, 2021

Thanks a lot! That saves my time!

@pau-lo
Copy link

pau-lo commented Mar 18, 2021

Amazing, thank you very much!

@danielhappycoder
Copy link

danielhappycoder commented Apr 2, 2021

thanks you for thanking me lol

@aolveramx
Copy link

Clever! 👌🏻 Thanks

@intiamaru
Copy link

Great man! thanks

@klalvit
Copy link

klalvit commented Nov 16, 2021

thnsa

@krak1111
Copy link

Thanks!

@ZergD
Copy link

ZergD commented Feb 8, 2022

Thank you very much! It is very useful!

@barrownicholas
Copy link

Thank you!!

@SeungheeJeong
Copy link

Thank you!!

@nshimiyimano-cloud
Copy link

best templaye man greatthanks

@4rass
Copy link

4rass commented Dec 15, 2022

Thank you!!

@takenoto
Copy link

takenoto commented Jan 5, 2023

Thank you 😄

@AnnaVasilchenko878
Copy link

Thank you

@CarolineTeixeira
Copy link

nice! thanks

@clown-wang
Copy link

THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment