Skip to content

Commit c76c399

Browse files
megativeclaude
andcommitted
Add .gitignore for Python build artifacts, venvs, and local state
The repository previously had no .gitignore, which meant local __pycache__/, virtualenvs, pytest cache, coverage reports, log files, SQLite databases under tests/.tmp/ and operator-local incidentrelay.conf with secrets all showed up in git status and risked being accidentally committed or copied into Docker images via COPY . . The ignore list covers: - Python bytecode and import cache - venv/, .venv/, env/, .env - pytest, coverage and tests/.tmp/ artifacts - runtime logs and SQLite databases - local config files (incidentrelay.conf, *.local.conf) - common IDE/editor and OS files - packaging build/ and dist/ output No tracked files are matched by the new patterns, so nothing disappears silently from git status. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e38aacc commit c76c399

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Byte-compiled / cache
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Virtual environments
7+
venv/
8+
.venv/
9+
env/
10+
.env
11+
12+
# Test artifacts
13+
.pytest_cache/
14+
.coverage
15+
.coverage.*
16+
htmlcov/
17+
tests/.tmp/
18+
19+
# Local runtime data
20+
logs/
21+
*.log
22+
*.sqlite
23+
*.sqlite3
24+
*.db
25+
26+
# Local config (operators put real secrets here)
27+
incidentrelay.conf
28+
*.local.conf
29+
30+
# IDE / editor
31+
.idea/
32+
.vscode/
33+
*.swp
34+
*.swo
35+
.DS_Store
36+
37+
# Build / packaging
38+
*.egg-info/
39+
build/
40+
dist/

0 commit comments

Comments
 (0)