完善 .gitignore:补充 IDE/OS/日志/覆盖率等常见忽略规则
This commit is contained in:
+46
-1
@@ -1,13 +1,58 @@
|
||||
# ---- Python ----
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.egg-info/
|
||||
.eggs/
|
||||
.Python
|
||||
build/
|
||||
dist/
|
||||
pip-wheel-metadata/
|
||||
|
||||
# ---- Django / Wagtail ----
|
||||
*.sqlite3
|
||||
*.sqlite3-journal
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
/media/
|
||||
/staticfiles/
|
||||
/static/
|
||||
|
||||
# ---- 虚拟环境 ----
|
||||
.venv/
|
||||
venv/
|
||||
*.egg-info/
|
||||
env/
|
||||
ENV/
|
||||
|
||||
# ---- 测试 / 覆盖率 ----
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
.coverage.*
|
||||
htmlcov/
|
||||
.tox/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
|
||||
# ---- 日志 / 本地临时文件 ----
|
||||
*.log
|
||||
*.tmp
|
||||
.git_commit_msg.txt
|
||||
pytest_output.txt
|
||||
pytest_full_output.txt
|
||||
|
||||
# ---- IDE / 编辑器 ----
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# ---- 操作系统 ----
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
desktop.ini
|
||||
|
||||
# ---- 前端(node_modules/.next 以防万一在根目录出现,正常情况下由 frontend/ 独立仓库管理)----
|
||||
node_modules/
|
||||
.next/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user