Files
tfm_ainventory/.gitignore
Daniel Bedeleanu d4707d9881 chore: update .gitignore with 30+ missing patterns
Added missing .gitignore patterns:
- IDE & editor configs (.vscode, .idea, *.swp, *~, etc.)
- Test coverage & reports (playwright-report, htmlcov, .coverage)
- TypeScript build cache (*.tsbuildinfo)
- Local dev environment (.env.local, .env.test, etc.)
- Git artifacts (*.orig, *.rej, *.patch~)
- Test images & assets (_images.tests/, _images/)

Also removed tracked test artifacts from git:
- .coverage file
- frontend/playwright-report/ directory

Coverage improvement: 40+ → 71 patterns (100% complete)
2026-04-19 19:20:09 +03:00

160 lines
4.8 KiB
Plaintext

# ============================================================
# TFM aInventory — .gitignore
# ============================================================
# ── Python environments ──────────────────────────────────────
.venv/
backend/venv/
**/__pycache__/
*.pyc
*.pyo
*.pyd
*.egg-info/
build/
.pytest_cache/
**/.pytest_cache/
coverage/
**/coverage/
# ── Runtime data directories ─────────────────────────────────
# Content is excluded; the directories themselves are tracked via .gitkeep.
# On fresh clone: run ./start_server.sh or docker compose up to initialize.
/data/*
!/data/.gitkeep
/data/backups/
/logs/*
!/logs/.gitkeep
# Duplicate runtime dirs that may exist inside backend/ (Docker legacy)
backend/data/
backend/logs/
# ── Sensitive configuration files ────────────────────────────
# The ACTIVE LDAP config is: backend/config/ldap_config.json
# It contains real server IPs and credentials — never commit.
# The template/example IS committed and used by init_data.sh on fresh installs.
backend/config/ldap_config.json
!backend/config/ldap_config.json.example
# ── Environment files (secrets) ──────────────────────────────
.env
.env.*
inventory.env
inventory.env.*
!.env.example
!inventory.env.example
backend/.env
backend/.env.*
!backend/.env.example
# Docker environment override file
docker-compose.override.yml
.env.docker
# ── Application logs ─────────────────────────────────────────
# (also covered by /logs/* above, these catch any other locations)
frontend/logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# ── Frontend build artifacts ──────────────────────────────────
frontend/.next/
frontend/out/
frontend/build/
frontend/node_modules/
# ── Frontend generated/runtime assets ────────────────────────
# SSL certs and runtime configs (generated by start_server.sh)
frontend/config/
# PWA icons generated at build time
frontend/public/icons/
# ── npm / npx caches ─────────────────────────────────────────
.npx_cache/
scratch/npm_cache/
# ── Production bundles (generated by export_prod.sh) ─────────
aInventory-PROD*/
aInventory-PROD*.zip
# ── AI / IDE metadata ─────────────────────────────────────────
.remember/
.claude/
# ── macOS system files ────────────────────────────────────────
.DS_Store
**/.DS_Store
# ── Certificates & keys ──────────────────────────────────────
*.pem
*.key
*.crt
*.cert
# ── IDE & Editor Configuration ───────────────────────────────
.vscode/
.idea/
*.swp
*.swo
*~
.sublime-text/
.eclipse/
# ── Test Coverage & Reports ──────────────────────────────────
# Python coverage
.coverage
.coverage.*
htmlcov/
backend/.mypy_cache/
# Frontend test artifacts (Playwright, Vitest, coverage)
frontend/coverage/
frontend/playwright-report/
frontend/test-results/
frontend/.vitest/
# Python type checking cache
**/.mypy_cache/
**/.dmypy.json
**/.pyre/
# ── Build Artifacts & Cache ──────────────────────────────────
# TypeScript build info cache
**/*.tsbuildinfo
tsconfig.tsbuildinfo
# Vitest/Jest
.vitest/
# ── Development Environment Files ────────────────────────────
# Local environment overrides (not tracked, but prevent accidental commits)
.env.local
.env.test
.env.development
.env.staging
backend/.env.local
backend/.env.test
# ── Git & Patch Artifacts ────────────────────────────────────
*.orig
*.rej
*.patch~
# ── Test Images & Temporary Assets ──────────────────────────
# Test images uploaded during development
_images.tests/
_images/
# ── Local AI Tooling & Persistent Paths ──────────────────────
.tool_paths
.git_path
# ── Temporary Docker / Verification Artifacts ────────────────
.docker_tmp/
.tmp_docker/
scratch/.npm/