feat: add comprehensive .gitignore for Python project

Add .gitignore file with rules for Python, IDE, test files, build artifacts, virtual environments, OS generated files, editor backups, test coverage, Python tooling, Jupyter, and RSA keypairs to improve repository cleanliness and prevent unwanted files from being committed.
This commit is contained in:
Alpha Nerd 2025-12-17 16:41:10 +01:00
parent 91ad5afe81
commit 3c5e1b7f18

105
.gitignore vendored Normal file
View file

@ -0,0 +1,105 @@
# Python
*.py[cod]
__pycache__/
.Python
python-profile.*
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# Environment
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# IDE
.idea/
.vscode/
*.swp
*.swo
*.bak
*.tmp
*.log
# Test files
*.test
*.test.py
__pycache__/
.py[co]
# Build artifacts
build/
dist/
*.egg-info/
*.egg
# Virtual environments
venv/
.env
.env.bak
# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Editor backup files
*.swp
*.swo
# Test coverage
.htmlcov/
.coverage
.coverage.*
.coveragerc
cover.xml
# Python tooling
.pytest_cache/
.mypy_cache/
.pylint.d/
.flake8
.tox/
.hypothesis/
.instances/
# Jupyter
.ipynb_checkpoints/
.jupyter/
.jupyterlite/
# RSA Keypairs
client_keys/
*.pem
*.key
*.cer
*.crt
*.csr
*.der
*.pfx
*.p12
*.p7b
*.p7c
*.p7r
*.p7s