G
GitIgnore.pro
Back to Templates

Fastapi .gitignore Template

Fastapi project template

5K downloads
4.5/5.0
Updated 2024-01
.gitignore
27 lines

Using GitIgnore.pro fallback template because the official template was unavailable during generation.

# Virtual environments
venv/
.venv/

# Build outputs
dist/
build/

# Test artifacts
.pytest_cache/
coverage/

# IDE & tooling
.vscode/
.idea/

# Logs
logs/
*.log

# Deployment
app/static/
app/uploads/

# Docker
.docker/
.dockerignore

How to Use This Template

  1. Copy the template content above
  2. Create a new file named .gitignore in your project root
  3. Paste the content into the file
  4. Customize the patterns for your specific project needs
  5. Commit the .gitignore file to your repository

FastAPI / Python 服务端

获取 FastAPI 模板

根据异步服务的产物(pytest、coverage、Docker)生成忽略组合。