# === Python === # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ pip-wheel-metadata/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # === 爬蟲專案特定 === # 資料檔案 data/ *.json *.csv *.xlsx *.db # 日誌檔案 logs/ *.log *.out # 快取檔案 cache/ .cache/ # 備份檔案 backup/ *.backup *.bak # 設定檔案(包含敏感資訊) config.ini settings.json credentials.json # 臨時檔案 temp/ tmp/ *.tmp # === Docker === # Docker相關(保留 docker-compose.yml 和 Dockerfile) .dockerignore # === IDE/編輯器 === # VSCode .vscode/ *.code-workspace # PyCharm .idea/ *.iws *.iml *.ipr # Sublime Text *.sublime-project *.sublime-workspace # Vim *.swp *.swo *~ # Emacs *~ \#*\# /.emacs.desktop /.emacs.desktop.lock *.elc auto-save-list tramp .\#* # === 系統檔案 === # macOS .DS_Store .AppleDouble .LSOverride Icon ._* .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns .com.apple.timemachine.donotpresent # Windows Thumbs.db Thumbs.db:encryptable ehthumbs.db ehthumbs_vista.db *.stackdump [Dd]esktop.ini $RECYCLE.BIN/ *.cab *.msi *.msix *.msm *.msp *.lnk # Linux *~ .fuse_hidden* .directory .Trash-* .nfs* # === 安全相關 === # API 金鑰和密碼 *.key *.pem *.p12 *.pfx secrets.json .secrets/ # 環境變數檔案 .env.local .env.development .env.test .env.production # === 其他 === # 壓縮檔案 *.zip *.rar *.7z *.tar.gz *.tar.bz2 # 圖片(如果不需要版控) # *.jpg # *.jpeg # *.png # *.gif # *.bmp # *.svg # 文件檔案(如果是輸出結果) # *.pdf # *.doc # *.docx # 測試輸出 test_output/ screenshots/ # 性能分析 *.prof