Skip to content

Commit 47b4c84

Browse files
committed
🐛 Python .gitignore
1 parent 1b45180 commit 47b4c84

File tree

2 files changed

+159
-0
lines changed

2 files changed

+159
-0
lines changed

git/.gitignore

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,161 @@ fabric.properties
150150

151151
# Built Visual Studio Code Extensions
152152
*.vsix
153+
154+
#################################################################################
155+
# https://github.com/github/gitignore/blob/main/Python.gitignore
156+
#################################################################################
157+
158+
# Byte-compiled / optimized / DLL files
159+
__pycache__/
160+
*.py[cod]
161+
*$py.class
162+
163+
# C extensions
164+
*.so
165+
166+
# Distribution / packaging
167+
.Python
168+
build/
169+
develop-eggs/
170+
dist/
171+
downloads/
172+
eggs/
173+
.eggs/
174+
lib/
175+
lib64/
176+
parts/
177+
sdist/
178+
var/
179+
wheels/
180+
share/python-wheels/
181+
*.egg-info/
182+
.installed.cfg
183+
*.egg
184+
MANIFEST
185+
186+
# PyInstaller
187+
# Usually these files are written by a python script from a template
188+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
189+
*.manifest
190+
*.spec
191+
192+
# Installer logs
193+
pip-log.txt
194+
pip-delete-this-directory.txt
195+
196+
# Unit test / coverage reports
197+
htmlcov/
198+
.tox/
199+
.nox/
200+
.coverage
201+
.coverage.*
202+
.cache
203+
nosetests.xml
204+
coverage.xml
205+
*.cover
206+
*.py,cover
207+
.hypothesis/
208+
.pytest_cache/
209+
cover/
210+
211+
# Translations
212+
*.mo
213+
*.pot
214+
215+
# Django stuff:
216+
*.log
217+
local_settings.py
218+
db.sqlite3
219+
db.sqlite3-journal
220+
221+
# Flask stuff:
222+
instance/
223+
.webassets-cache
224+
225+
# Scrapy stuff:
226+
.scrapy
227+
228+
# Sphinx documentation
229+
docs/_build/
230+
231+
# PyBuilder
232+
.pybuilder/
233+
target/
234+
235+
# Jupyter Notebook
236+
.ipynb_checkpoints
237+
238+
# IPython
239+
profile_default/
240+
ipython_config.py
241+
242+
# pyenv
243+
# For a library or package, you might want to ignore these files since the code is
244+
# intended to run in multiple environments; otherwise, check them in:
245+
# .python-version
246+
247+
# pipenv
248+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
249+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
250+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
251+
# install all needed dependencies.
252+
#Pipfile.lock
253+
254+
# poetry
255+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
256+
# This is especially recommended for binary packages to ensure reproducibility, and is more
257+
# commonly ignored for libraries.
258+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
259+
#poetry.lock
260+
261+
# pdm
262+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
263+
#pdm.lock
264+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
265+
# in version control.
266+
# https://pdm.fming.dev/#use-with-ide
267+
.pdm.toml
268+
269+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
270+
__pypackages__/
271+
272+
# Celery stuff
273+
celerybeat-schedule
274+
celerybeat.pid
275+
276+
# SageMath parsed files
277+
*.sage.py
278+
279+
# Environments
280+
.env
281+
.venv
282+
env/
283+
venv/
284+
ENV/
285+
env.bak/
286+
venv.bak/
287+
288+
# Spyder project settings
289+
.spyderproject
290+
.spyproject
291+
292+
# Rope project settings
293+
.ropeproject
294+
295+
# mkdocs documentation
296+
/site
297+
298+
# mypy
299+
.mypy_cache/
300+
.dmypy.json
301+
dmypy.json
302+
303+
# Pyre type checker
304+
.pyre/
305+
306+
# pytype static type analyzer
307+
.pytype/
308+
309+
# Cython debug symbols
310+
cython_debug/

git/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ files:
1313
- `Linux.gitignore`
1414
- `macOS.gitignore`
1515
- `JetBrains.gitignore`
16+
- `Python.gitignore`

0 commit comments

Comments
 (0)