|
1 | | -# REQ.UNIVERSAL: Spec repositories MUST ignore editor, OS, and transient artifacts. |
2 | | -# WHY: Prevent accidental commits of local or generated noise. |
3 | | -# ALT: Expand only if the repository adds tooling that generates artifacts. |
| 1 | +# ============================================================ |
| 2 | +# .gitignore (Keep unnecessary files out of the repository) |
| 3 | +# ============================================================ |
4 | 4 |
|
5 | | -# === OS artifacts === |
6 | | -.DS_Store |
7 | | -Thumbs.db |
| 5 | +# REQ.UNIVERSAL: All professional GitHub project repositories MUST include .gitignore. |
| 6 | +# WHY: Prevent committing generated artifacts, local state, secrets, and OS-specific files. |
| 7 | +# ALT: Repository may customize ignores, but MUST preserve universal safety rules. |
| 8 | +# CUSTOM: Logs may be temporarily committed for verification; keep ignored for |
| 9 | +# production use and security. |
8 | 10 |
|
9 | | -# === Editor artifacts === |
10 | | -*.swp |
| 11 | + |
| 12 | +# === Universal (all projects, all languages) === |
| 13 | + |
| 14 | +# WHY: Logs are useful during debugging and verification. |
| 15 | +# ALT: Comment if logs must be inspected or validated. |
| 16 | +*.log |
| 17 | +logs/ |
| 18 | +PRIVATE_NOTES.md |
| 19 | +PRIVATE-NOTES.md |
| 20 | + |
| 21 | +# WHY: Temporary and swap files are machine-local noise and create meaningless diffs. |
11 | 22 | *.swo |
12 | | -*.bak |
| 23 | +*.swp |
| 24 | +*.tmp |
13 | 25 | *~ |
| 26 | + |
| 27 | +# === VS Code (special case) === |
| 28 | + |
| 29 | +# WHY: Ignore editor state while allowing a shared baseline configuration. |
14 | 30 | .vscode/ |
| 31 | + |
| 32 | +# WHY: Commit recommended extensions (opt-in) for consistent development experience. |
| 33 | +# NOTE: Share recommendations, not personal editor styles or preferences. |
| 34 | +!.vscode/extensions.json |
| 35 | +!.vscode/settings.json |
| 36 | + |
| 37 | +# === OS-specific files (macOS / Windows) === |
| 38 | + |
| 39 | +# WHY: OS-generated metadata files should never be tracked. |
| 40 | +.AppleDouble |
| 41 | +.DS_Store |
| 42 | +.LSOverride |
| 43 | +Icon\r |
| 44 | +._* |
| 45 | +.Spotlight-V100/ |
| 46 | +.Trashes |
| 47 | +desktop.ini |
| 48 | +ehthumbs.db |
| 49 | +Thumbs.db |
| 50 | + |
| 51 | +# === Editors / IDEs (non-VS Code) === |
| 52 | + |
| 53 | +# WHY: IDE metadata is machine-local and should not be tracked. |
| 54 | +*.code-workspace |
15 | 55 | .idea/ |
16 | 56 |
|
17 | | -# === Temporary files === |
18 | | -.tmp/ |
19 | | -.temp/ |
| 57 | +# === Environment variables and secrets === |
20 | 58 |
|
21 | | -# === LaTeX build artifacts (if SPEC is rendered locally) === |
22 | | -*.aux |
23 | | -*.bbl |
24 | | -*.blg |
25 | | -*.log |
26 | | -*.out |
27 | | -*.toc |
28 | | -*.fls |
29 | | -*.fdb_latexmk |
30 | | - |
31 | | -# === PDF previews === |
32 | | -*.pdf |
33 | | - |
34 | | -# === Proof assistant artifacts (defensive, non-binding) === |
35 | | -*.olean |
36 | | -*.ilean |
37 | | -*.trace |
38 | | -.lake/ |
| 59 | +# WHY: Never commit credentials or environment-specific configuration. |
| 60 | +.env |
| 61 | +.env.* |
| 62 | +*.env |
| 63 | + |
| 64 | +# === Documentation build output === |
| 65 | + |
| 66 | +# WHY: Static site build output is generated. |
| 67 | +site/ |
| 68 | + |
| 69 | +# === Generic caches === |
| 70 | + |
| 71 | +# WHY: Generic caches are machine-local and should not be tracked. |
| 72 | +.cache/ |
| 73 | + |
| 74 | +# === Python === |
| 75 | + |
| 76 | +# WHY: Virtual environments are machine-local and reproducible. |
| 77 | +.venv/ |
| 78 | +venv/ |
| 79 | + |
| 80 | +# REQ.PYTHON: Do NOT git ignore uv.lock. Commit it and use it in CI/CD pipelines. |
| 81 | + |
| 82 | +# WHY: Python version when using scm matches any repo depth and any package name |
| 83 | +**/src/**/_version.py |
| 84 | + |
| 85 | +# WHY: Python bytecode is generated. |
| 86 | +__pycache__/ |
| 87 | +*.pyc |
| 88 | +*.pyd |
| 89 | +*.pyo |
| 90 | + |
| 91 | +# WHY: Build and packaging artifacts are generated. |
| 92 | +.eggs/ |
| 93 | +build/ |
| 94 | +dist/ |
| 95 | +*.egg |
| 96 | +*.egg-info/ |
| 97 | +*.whl |
| 98 | + |
| 99 | +# WHY: Tooling caches should not be tracked. |
| 100 | +.coverage |
| 101 | +.coverage.* |
| 102 | +.mypy_cache/ |
| 103 | +.pytest_cache/ |
| 104 | +.pytype/ |
| 105 | +.ruff_cache/ |
| 106 | +.tox/ |
| 107 | + |
| 108 | +# WHY: Notebook checkpoint state is generated. |
| 109 | +.ipynb_checkpoints/ |
0 commit comments