User Tools

Site Tools


basic_gitignore_template_for_python_projects

Basic .gitignore template for Python projects

.gitignore
  1. # Editors
  2. .vscode/
  3. .idea/
  4.  
  5. # Vagrant
  6. .vagrant/
  7.  
  8. # Mac/OSX
  9. .DS_Store
  10.  
  11. # Windows
  12. Thumbs.db
  13.  
  14. # Source for the following rules: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
  15. # Byte-compiled / optimized / DLL files
  16. __pycache__/
  17. *.py[cod]
  18. *$py.class
  19.  
  20. # C extensions
  21. *.so
  22.  
  23. # Distribution / packaging
  24. .Python
  25. build/
  26. develop-eggs/
  27. dist/
  28. downloads/
  29. eggs/
  30. .eggs/
  31. lib/
  32. lib64/
  33. parts/
  34. sdist/
  35. var/
  36. wheels/
  37. *.egg-info/
  38. .installed.cfg
  39. *.egg
  40. MANIFEST
  41.  
  42. # PyInstaller
  43. # Usually these files are written by a python script from a template
  44. # before PyInstaller builds the exe, so as to inject date/other infos into it.
  45. *.manifest
  46. *.spec
  47.  
  48. # Installer logs
  49. pip-log.txt
  50. pip-delete-this-directory.txt
  51.  
  52. # Unit test / coverage reports
  53. htmlcov/
  54. .tox/
  55. .nox/
  56. .coverage
  57. .coverage.*
  58. .cache
  59. nosetests.xml
  60. coverage.xml
  61. *.cover
  62. .hypothesis/
  63. .pytest_cache/
  64.  
  65. # Translations
  66. *.mo
  67. *.pot
  68.  
  69. # Django stuff:
  70. *.log
  71. local_settings.py
  72. db.sqlite3
  73.  
  74. # Flask stuff:
  75. instance/
  76. .webassets-cache
  77.  
  78. # Scrapy stuff:
  79. .scrapy
  80.  
  81. # Sphinx documentation
  82. docs/_build/
  83.  
  84. # PyBuilder
  85. target/
  86.  
  87. # Jupyter Notebook
  88. .ipynb_checkpoints
  89.  
  90. # IPython
  91. profile_default/
  92. ipython_config.py
  93.  
  94. # pyenv
  95. .python-version
  96.  
  97. # celery beat schedule file
  98. celerybeat-schedule
  99.  
  100. # SageMath parsed files
  101. *.sage.py
  102.  
  103. # Environments
  104. .env
  105. .venv
  106. env/
  107. venv/
  108. ENV/
  109. env.bak/
  110. venv.bak/
  111.  
  112. # Spyder project settings
  113. .spyderproject
  114. .spyproject
  115.  
  116. # Rope project settings
  117. .ropeproject
  118.  
  119. # mkdocs documentation
  120. /site
  121.  
  122. # mypy
  123. .mypy_cache/
  124. .dmypy.json
  125. dmypy.json
basic_gitignore_template_for_python_projects.txt · Last modified: 2023/04/06 10:28 (external edit)