1+ # ============================================================================
2+ # Comprehensive .gitignore for Python / Data Science / AI-ML Repositories
3+ # ============================================================================
4+
5+ # ----------------------------------------------------------------------------
6+ # SECRETS & CREDENTIALS
7+ # ----------------------------------------------------------------------------
8+ .env
9+ .env.*
10+ *.pem
11+ *.key
12+ secrets/
13+ credentials/
14+ config.local.*
15+ *.secrets
16+
17+ # ----------------------------------------------------------------------------
18+ # VAULT / AGENT WORKFLOW
19+ # ----------------------------------------------------------------------------
20+ *-pending.md
21+ staging/
22+
23+ # ----------------------------------------------------------------------------
24+ # IDE & EDITOR
25+ # ----------------------------------------------------------------------------
26+ scratch/
27+ .vscode/
28+ .idea/
29+ .internal-files/
30+ .ai-sandbox/
31+ .markdownlint.json
32+ cspell.json
33+ *.swp
34+ *.swo
35+ *~
36+ .project
37+ .pydevproject
38+ .spyderproject
39+ .spyproject
40+
41+ # ----------------------------------------------------------------------------
42+ # PYTHON
43+ # ----------------------------------------------------------------------------
44+ __pycache__/
45+ *.py[cod]
46+ *$py.class
47+ *.so
48+ .Python
49+ build/
50+ develop-eggs/
51+ dist/
52+ downloads/
53+ eggs/
54+ .eggs/
55+ lib/
56+ lib64/
57+ parts/
58+ sdist/
59+ var/
60+ wheels/
61+ share/python-wheels/
62+ *.egg-info/
63+ .installed.cfg
64+ *.egg
65+ MANIFEST
66+
67+ # Virtual environments
68+ venv/
69+ .venv/
70+ ENV/
71+ env/
72+ .conda/
73+ conda-env/
74+
75+ # PyInstaller
76+ *.manifest
77+ *.spec
78+
79+ # Installer logs
80+ pip-log.txt
81+ pip-delete-this-directory.txt
82+
83+ # Type checking
84+ .mypy_cache/
85+ .dmypy.json
86+ dmypy.json
87+ .pytype/
88+
89+ # Testing
90+ .tox/
91+ .nox/
92+ .coverage
93+ .coverage.*
94+ htmlcov/
95+ .pytest_cache/
96+ nosetests.xml
97+ coverage.xml
98+ *.cover
99+ *.py,cover
100+ .hypothesis/
101+
102+ # ----------------------------------------------------------------------------
103+ # JUPYTER / NOTEBOOKS
104+ # ----------------------------------------------------------------------------
105+ .ipynb_checkpoints/
106+ */.ipynb_checkpoints/*
107+ profile_default/
108+ ipython_config.py
109+ *.ipynb_meta
110+
111+ # ----------------------------------------------------------------------------
112+ # DATA SCIENCE / ML / AI
113+ # ----------------------------------------------------------------------------
114+ # Model files (large binaries)
115+ *.h5
116+ *.hdf5
117+ *.pkl
118+ *.pickle
119+ *.joblib
120+ *.model
121+ *.pt
122+ *.pth
123+ *.onnx
124+ *.pb
125+ *.tflite
126+ *.safetensors
127+ *.gguf
128+ *.bin
129+
130+ # Checkpoints
131+ checkpoints/
132+ *.ckpt
133+ *.ckpt.*
134+
135+ # Datasets (keep structure, exclude data)
136+ data/raw/
137+ data/processed/
138+ data/interim/
139+ data/external/
140+ *.csv
141+ *.parquet
142+ *.feather
143+ *.arrow
144+ *.tsv
145+ !data/.gitkeep
146+
147+ # FITS and astronomical data
148+ *.fits
149+ *.fits.gz
150+ *.fit
151+ *.fz
152+
153+ # Large archives
154+ *.tar
155+ *.tar.gz
156+ *.tgz
157+ *.zip
158+ *.7z
159+ *.rar
160+
161+ # MLflow / experiment tracking
162+ mlruns/
163+ mlartifacts/
164+ wandb/
165+ outputs/
166+ runs/
167+
168+ # Weights & Biases
169+ wandb/
170+
171+ # TensorBoard
172+ logs/
173+ tensorboard/
174+
175+ # Hugging Face
176+ .cache/
177+ models/
178+ transformers_cache/
179+
180+ # DVC
181+ .dvc/cache/
182+ .dvc/tmp/
183+ *.dvc.lock
184+
185+ # ----------------------------------------------------------------------------
186+ # VECTOR DATABASES / EMBEDDINGS
187+ # ----------------------------------------------------------------------------
188+ *.faiss
189+ *.index
190+ chroma/
191+ chromadb/
192+ lancedb/
193+ qdrant_storage/
194+ weaviate_data/
195+ milvus_data/
196+
197+ # ----------------------------------------------------------------------------
198+ # BUILD & DOCUMENTATION
199+ # ----------------------------------------------------------------------------
200+ docs/_build/
201+ site/
202+ *.log
203+ *.tmp
204+ *.temp
205+
206+ # Sphinx
207+ docs/_build/
208+
209+ # MkDocs
210+ site/
211+
212+ # ----------------------------------------------------------------------------
213+ # OS GENERATED
214+ # ----------------------------------------------------------------------------
215+ .DS_Store
216+ .DS_Store?
217+ ._*
218+ .Spotlight-V100
219+ .Trashes
220+ ehthumbs.db
221+ Thumbs.db
222+ desktop.ini
223+
224+ # ----------------------------------------------------------------------------
225+ # DOCKER
226+ # ----------------------------------------------------------------------------
227+ docker-compose.override.yml
228+ .docker/
229+
230+ # ----------------------------------------------------------------------------
231+ # NODE (if any JS tooling)
232+ # ----------------------------------------------------------------------------
233+ node_modules/
234+ package-lock.json
235+ yarn.lock
236+
237+ # ----------------------------------------------------------------------------
238+ # ANSIBLE
239+ # ----------------------------------------------------------------------------
240+ *.retry
241+ ansible/inventory/hosts.local
242+
243+ # ----------------------------------------------------------------------------
244+ # TERRAFORM (if used)
245+ # ----------------------------------------------------------------------------
246+ .terraform/
247+ *.tfstate
248+ *.tfstate.*
249+ *.tfvars
250+ !*.tfvars.example
251+
252+ # ----------------------------------------------------------------------------
253+ # MISC
254+ # ----------------------------------------------------------------------------
255+ *.bak
256+ *.backup
257+ tmp/
258+ temp/
259+ local/
260+ .local/
261+ *.local
0 commit comments