forked from pdeitel/IntroToPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
113 lines (86 loc) · 2.59 KB
/
.gitignore
File metadata and controls
113 lines (86 loc) · 2.59 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
# ============================================================
# .gitignore (Keep unnecessary files out of the repository)
# ============================================================
# REQ.UNIVERSAL: All professional GitHub project repositories MUST include .gitignore.
# WHY: Prevent committing generated artifacts, local state, secrets, and OS-specific files.
# ALT: Repository may customize ignores, but MUST preserve universal safety rules.
# CUSTOM: Logs may be temporarily committed for verification; keep ignored for
# production use and security.
# === DIETEL PROJECT SPECIFIC RULES ===
# WHY: Textbook examples are available at https://github.com/pdeitel/IntroToPython
examples/
# === Universal (all projects, all languages) ===
# WHY: Logs are useful during debugging and verification.
# ALT: Comment if logs must be inspected or validated.
*.log
logs/
PRIVATE_NOTES.md
PRIVATE-NOTES.md
# WHY: Temporary and swap files are machine-local noise and create meaningless diffs.
*.swo
*.swp
*.tmp
*~
# === VS Code (special case) ===
# WHY: Ignore editor state while allowing a shared baseline configuration.
.vscode/
# WHY: Commit recommended extensions (opt-in) for consistent development experience.
# NOTE: Share recommendations, not personal editor styles or preferences.
!.vscode/extensions.json
!.vscode/settings.json
# === OS-specific files (macOS / Windows) ===
# WHY: OS-generated metadata files should never be tracked.
.AppleDouble
.DS_Store
.LSOverride
Icon\r
._*
.Spotlight-V100/
.Trashes
desktop.ini
ehthumbs.db
Thumbs.db
# === Editors / IDEs (non-VS Code) ===
# WHY: IDE metadata is machine-local and should not be tracked.
*.code-workspace
.idea/
# === Environment variables and secrets ===
# WHY: Never commit credentials or environment-specific configuration.
.env
.env.*
*.env
# === Documentation build output ===
# WHY: Static site build output is generated.
site/
# === Generic caches ===
# WHY: Generic caches are machine-local and should not be tracked.
.cache/
# === Python ===
# WHY: Virtual environments are machine-local and reproducible.
.venv/
venv/
# REQ.PYTHON: Do NOT git ignore uv.lock. Commit it and use it in CI/CD pipelines.
# WHY: Python version when using scm matches any repo depth and any package name
**/src/**/_version.py
# WHY: Python bytecode is generated.
__pycache__/
*.pyc
*.pyd
*.pyo
# WHY: Build and packaging artifacts are generated.
.eggs/
build/
dist/
*.egg
*.egg-info/
*.whl
# WHY: Tooling caches should not be tracked.
.coverage
.coverage.*
.mypy_cache/
.pytest_cache/
.pytype/
.ruff_cache/
.tox/
# WHY: Notebook checkpoint state is generated.
.ipynb_checkpoints/