Skip to content

Commit f711b4e

Browse files
committed
chore: update gitignore with common paths related to Python and C projects
Fixes #1381 Fear not: I have ensured that all previous entries remain as they were (just in different order with contextual comments)
1 parent 098cbe3 commit f711b4e

File tree

1 file changed

+239
-13
lines changed

1 file changed

+239
-13
lines changed

.gitignore

Lines changed: 239 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,245 @@
1-
/.cache/
2-
/.coverage
3-
/.eggs/
4-
/.envrc
5-
/.tox/
6-
/build/
7-
/ci/
1+
# Created by https://www.toptal.com/developers/gitignore/api/python,c
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,c
3+
4+
### C ###
5+
# Prerequisites
6+
*.d
7+
8+
# Object files
9+
*.o
10+
*.ko
11+
*.obj
12+
*.elf
13+
14+
# Linker output
15+
*.ilk
16+
*.map
17+
*.exp
18+
19+
# Precompiled Headers
20+
*.gch
21+
*.pch
22+
23+
# Libraries
24+
*.lib
25+
*.a
26+
*.la
27+
*.lo
28+
29+
# Shared objects (inc. Windows DLLs)
30+
*.dll
31+
*.so
32+
*.so.*
33+
*.dylib
34+
35+
# Executables
36+
*.exe
37+
*.out
38+
*.app
39+
*.i*86
40+
*.x86_64
41+
*.hex
42+
43+
# Debug files
44+
*.dSYM/
45+
*.su
46+
*.idb
47+
*.pdb
48+
49+
# Kernel Module Compile Results
50+
*.mod*
51+
*.cmd
52+
.tmp_versions/
53+
modules.order
54+
Module.symvers
55+
Mkfile.old
56+
dkms.conf
57+
58+
### Python ###
59+
# Byte-compiled / optimized / DLL files
60+
__pycache__/
61+
*.py[cod]
62+
*$py.class
63+
64+
# C extensions
65+
66+
# Distribution / packaging
67+
.Python
68+
build/
69+
develop-eggs/
870
/dist/
9-
/wheelhouse/
10-
/docs/_build/
71+
downloads/
72+
eggs/
73+
/.eggs/
74+
lib/
75+
lib64/
76+
parts/
77+
sdist/
78+
var/
79+
wheels/
80+
wheelhouse/
81+
share/python-wheels/
82+
*.egg-info/
83+
.installed.cfg
84+
*.egg
1185
/MANIFEST
86+
87+
# PyInstaller
88+
# Usually these files are written by a python script from a template
89+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
90+
*.manifest
91+
*.spec
92+
93+
# Installer logs
94+
pip-log.txt
95+
pip-delete-this-directory.txt
96+
97+
# Unit test / coverage reports
98+
htmlcov/
99+
.tox/
100+
.nox/
101+
/.coverage
102+
.coverage.*
103+
/.cache/
104+
nosetests.xml
105+
coverage.xml
106+
lcov.info
107+
*.cover
108+
*.py,cover
109+
.hypothesis/
110+
.pytest_cache/
111+
cover/
112+
113+
# Translations
114+
*.mo
115+
*.pot
116+
117+
# Django stuff:
118+
*.log
119+
local_settings.py
120+
db.sqlite3
121+
db.sqlite3-journal
122+
123+
# Flask stuff:
124+
instance/
125+
.webassets-cache
126+
127+
# Scrapy stuff:
128+
.scrapy
129+
130+
# Sphinx documentation
131+
docs/_build/
132+
133+
# PyBuilder
134+
.pybuilder/
135+
target/
136+
137+
# Jupyter Notebook
138+
.ipynb_checkpoints
139+
140+
# IPython
141+
profile_default/
142+
ipython_config.py
143+
144+
# pyenv
145+
# For a library or package, you might want to ignore these files since the code is
146+
# intended to run in multiple environments; otherwise, check them in:
147+
# .python-version
148+
149+
# pipenv
150+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
151+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
152+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
153+
# install all needed dependencies.
154+
#Pipfile.lock
155+
156+
# poetry
157+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
158+
# This is especially recommended for binary packages to ensure reproducibility, and is more
159+
# commonly ignored for libraries.
160+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
161+
#poetry.lock
162+
163+
# pdm
164+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
165+
#pdm.lock
166+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
167+
# in version control.
168+
# https://pdm.fming.dev/#use-with-ide
169+
.pdm.toml
170+
171+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
172+
__pypackages__/
173+
174+
# Celery stuff
175+
celerybeat-schedule
176+
celerybeat.pid
177+
178+
# SageMath parsed files
179+
*.sage.py
180+
181+
# Environments
182+
.env
183+
.venv
184+
env/
185+
venv/
186+
ENV/
187+
env.bak/
188+
venv.bak/
189+
190+
# Spyder project settings
191+
.spyderproject
192+
.spyproject
193+
194+
# Rope project settings
195+
.ropeproject
196+
197+
# mkdocs documentation
198+
/site
199+
200+
# mypy
201+
.mypy_cache/
202+
.dmypy.json
203+
dmypy.json
204+
205+
# Pyre type checker
206+
.pyre/
207+
208+
# pytype static type analyzer
209+
.pytype/
210+
211+
# Cython debug symbols
212+
cython_debug/
213+
214+
### Python Patch ###
215+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
216+
poetry.toml
217+
218+
# ruff
219+
.ruff_cache/
220+
221+
# LSP config files
222+
pyrightconfig.json
223+
224+
# End of https://www.toptal.com/developers/gitignore/api/python,c
225+
226+
# PyCharm (IntelliJ JetBrains)
227+
.idea/
228+
*.iml
229+
*.iws
230+
*.ipr
231+
.idea_modules/
232+
233+
# for VSCode
234+
.vscode/
235+
236+
# for Eclipse
237+
.settings/
238+
239+
# custom ignore paths
240+
/.envrc
12241
/venv*
13-
__pycache__/
14-
*.egg-info
15-
*.pyc
16-
*.so
242+
/ci/
17243
*.swp
18244
/pygit2/_libgit2.c
19245
/pygit2/_libgit2.o

0 commit comments

Comments
 (0)