-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitignore
More file actions
471 lines (381 loc) · 11.8 KB
/
Copy path.gitignore
File metadata and controls
471 lines (381 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
# ================================
# STIR-CRAFT PROJECT .GITIGNORE
# ================================
# Comprehensive exclusion file for Django + JavaScript + Docker project
# Updated: August 23, 2025
# ================================
# PROJECT-SPECIFIC EXCLUSIONS
# ================================
# Personal development scripts - avoid conflicts with team members' local utilities
update_branches.sh
# Debug utilities - temporary files for troubleshooting specific issues
debug_formset.py
# ================================
# SECURITY & SENSITIVE DATA
# ================================
# Environment files - contain sensitive configuration and secrets
.env
.env.local
.env.*.local
.envrc
*.env
# KEEP: .env.example files - these show the required structure without sensitive values
!.env.example
!.env.prod.example
!.env.test
# SSH keys and certificates - never commit authentication credentials
*.pem
*.key
*.crt
*.cert
id_rsa*
id_dsa*
id_ecdsa*
id_ed25519*
# Database dumps - may contain sensitive user data
*.sql
*.dump
*.dmp
# ================================
# PYTHON RUNTIME & COMPILATION
# ================================
# Byte-compiled / optimized / DLL files - generated at runtime, not source code
__pycache__/
*.py[codz]
*$py.class
# C extensions - compiled binaries specific to local machine architecture
*.so
# ================================
# PYTHON PACKAGE MANAGEMENT
# ================================
# ================================
# PYTHON PACKAGE MANAGEMENT
# ================================
# Distribution / packaging - build artifacts that can be regenerated
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller - executable building tool artifacts
# 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 - package installation debug information
pip-log.txt
pip-delete-this-directory.txt
# ================================
# TESTING & COVERAGE
# ================================
# Unit test / coverage reports - generated by pytest, coverage.py, etc.
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/
test-results/
.nyc_output/
# ================================
# DJANGO FRAMEWORK
# ================================
# Django stuff - runtime files and sensitive settings
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Static files collected by Django - regenerated by collectstatic command
# KEEP: staticfiles/ source directory with custom CSS/JS
# EXCLUDE: collected static files in production
staticfiles/admin/
staticfiles/rest_framework/
staticfiles/CACHE/
# Django media uploads - user-uploaded content (configure separate backup)
# Exclude all media files from version control - these should be handled by cloud storage in production
# TEMPORARY: Allow media files for production deployment (move to S3/Cloudinary later)
# media/
# Django migrations - KEEP these as they track database schema changes
# migrations/ are intentionally NOT ignored
# ================================
# NODEJS & FRONTEND
# ================================
# Node.js dependencies - huge folder, regenerated by npm/yarn install
node_modules/
# npm/yarn lock files - KEEP package-lock.json for reproducible builds
# package-lock.json is kept for dependency version consistency
# Frontend build artifacts - generated by webpack, vite, etc.
dist/
build/
.next/
.nuxt/
.vuepress/dist/
# Frontend coverage and test reports
coverage/
.nyc_output/
# ================================
# DOCKER & CONTAINERIZATION
# ================================
# Docker volumes and data - persistent storage handled separately
docker-data/
postgres-data/
redis-data/
# Docker Compose override files - local development customizations
docker-compose.override.yml
docker-compose.local.yml
# ================================
# DEVELOPMENT TOOLS & IDEs
# ================================
# ================================
# DEVELOPMENT TOOLS & IDEs
# ================================
# Visual Studio Code - workspace settings and extensions
.vscode/settings.json
.vscode/launch.json
.vscode/tasks.json
.vscode/.ropeproject
# KEEP: .vscode/extensions.json for team consistency
!.vscode/extensions.json
# PyCharm / IntelliJ IDEA - project-specific IDE configuration
.idea/
*.iws
*.iml
*.ipr
# Sublime Text - project files and workspace state
*.sublime-project
*.sublime-workspace
# Vim/Neovim - editor swap and backup files
*.swp
*.swo
*~
.netrwhist
# Emacs - editor backup and auto-save files
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# ================================
# LANGUAGE-SPECIFIC TOOLS
# ================================
# Translations - compiled translation files (source .po files are kept)
*.mo
*.pot
# Flask stuff - if mixing Flask components
instance/
.webassets-cache
# Scrapy stuff - web scraping framework artifacts
.scrapy
# Sphinx documentation - generated docs (source docs/ are kept)
docs/_build/
_build/
.doctrees/
# PyBuilder - build tool artifacts
.pybuilder/
target/
# Jupyter Notebook - checkpoint files and kernel data
.ipynb_checkpoints
# IPython - interactive Python shell configuration
profile_default/
ipython_config.py
# ================================
# PYTHON VERSION MANAGEMENT
# ================================
# pyenv - Python version specification
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv - dependency management (KEEP Pipfile.lock for reproducible builds)
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# UV - modern Python package installer
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
#uv.lock
# poetry - Python dependency management
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
#poetry.toml
# pdm - Python dependency management
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
#pdm.lock
#pdm.toml
.pdm-python
.pdm-build/
# pixi - conda-based package management
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
#pixi.lock
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
# in the .venv directory. It is recommended not to include this directory in version control.
.pixi
# PEP 582 - local packages directory used by modern package managers
__pypackages__/
# ================================
# VIRTUAL ENVIRONMENTS
# ================================
# Virtual environments - isolated Python environments (recreated from requirements)
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# ================================
# BACKGROUND SERVICES
# ================================
# Celery stuff - distributed task queue artifacts
celerybeat-schedule
celerybeat.pid
# Redis dumps - in-memory database snapshots
dump.rdb
# ================================
# TEMPORARY & CACHE FILES
# ================================
# SageMath parsed files - mathematical software artifacts
*.sage.py
# macOS system files - filesystem metadata
.DS_Store
.AppleDouble
.LSOverride
Icon?
._*
# Windows system files - filesystem metadata
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
# Linux temporary files
*~
.fuse_hidden*
.directory
.Trash-*
# ================================
# MODERN DEVELOPMENT TOOLS
# ================================
# Spyder project settings - Python IDE configuration
.spyderproject
.spyproject
# Rope project settings - Python refactoring library
.ropeproject
# mkdocs documentation - static site generator output
/site
# mypy - static type checker cache
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker - Facebook's Python type checker
.pyre/
# pytype static type analyzer - Google's Python type checker
.pytype/
# Cython debug symbols - compiled Python extension debugging
cython_debug/
# Ruff - modern Python linter and formatter cache
.ruff_cache/
# PyPI configuration file - package publishing credentials
.pypirc
# ================================
# AI-POWERED DEVELOPMENT TOOLS
# ================================
# Cursor - AI-powered code editor exclusions
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
# refer to https://docs.cursor.com/context/ignore-files
.cursorignore
.cursorindexingignore
# Abstra - AI-powered process automation framework
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/
# Marimo - reactive Python notebook environment
marimo/_static/
marimo/_lsp/
__marimo__/
# ================================
# DEPLOYMENT & PRODUCTION
# ================================
# Heroku - platform-specific files
.heroku/
# AWS - cloud deployment artifacts
.aws/
.elasticbeanstalk/
# Google Cloud - deployment configuration
.gcloud/
# Vercel - frontend deployment configuration
.vercel
# Netlify - static site deployment
.netlify
# ================================
# BACKUP & TEMPORARY FILES
# ================================
# Backup files - created by editors and tools
*.bak
*.backup
*.orig
*.tmp
# Log files - application and system logs
*.log
logs/
# Crash dumps - application crash reports
*.crash
*.stackdump
# ================================
# WHY CERTAIN FILES ARE KEPT
# ================================
# KEPT FILES AND REASONING:
#
# Pipfile & Pipfile.lock - Ensures all developers use same dependency versions
# package.json & package-lock.json - Frontend dependency consistency
# requirements.txt - Python dependency specification for production
# .env.example - Shows required environment variables without secrets
# staticfiles/css/ & staticfiles/js/ - Custom stylesheets and JavaScript
# migrations/ - Database schema evolution history (CRITICAL for Django)
# templates/ - Django HTML templates (core application files)
# .vscode/extensions.json - Ensures team uses same VS Code extensions
# Dockerfile & docker-compose.yml - Container configuration for deployment
# .github/ - CI/CD workflows and repository automation
# docs/ - Project documentation (recently cleaned and organized)
#
# WHY THESE ARE EXCLUDED:
#
# __pycache__/ - Regenerated automatically by Python interpreter
# node_modules/ - Huge folder, recreated by npm install
# .env - Contains secrets and local configuration
# *.log - Can grow large and contain sensitive information
# .vscode/settings.json - Personal developer preferences
# .coverage - Test coverage reports, regenerated by test runs
# build/ & dist/ - Compiled artifacts, regenerated by build process
# Heroku deployment guides - exclude new documentation files
Heroku-Deployment-Guide.md