Releases: Forence1999/py_template
Releases · Forence1999/py_template
v1.0.1 - Code Formatting Standardization
🎨 Code Formatting Standardization
This release standardizes code formatting across all file types in the project, ensuring consistency and adherence to industry best practices.
📝 Changes
Indentation Standards
Unified indentation conventions across all file types:
- Python: 4 spaces (PEP 8 standard)
- JSON/YAML: 2 spaces (industry standard)
- Markdown/HTML/XML: 2 spaces (W3C/Google style guide)
- Shell scripts: 2 spaces (Google Shell Style Guide)
- JavaScript/TypeScript: 2 spaces
Configuration Updates
.editorconfig: Added comprehensive file type rules with Chinese comments explaining each standard.prettierrc: Configured per-file-type overrides for consistent formatting across all supported file types.vscode/settings.json: Added expliciteditor.tabSizesettings for all language modes and disabled auto-detectionpyproject.toml: Updated Ruff configuration withline-ending = "lf"setting
Applied Formatting
- Reformatted all project files using Prettier (JSON, YAML, Markdown, etc.)
- Reformatted all Python files using Ruff
- 21 files changed, 930 insertions(+), 789 deletions(-)
Documentation
- Added "Code Style" section to README documenting indentation conventions
- Updated CHANGELOG.md with complete version history
🔗 Full Changelog
See CHANGELOG.md for complete details.
Full Diff: v1.0.0...v1.0.1
Release v1.0.0
A minimal Python project template with modern tooling and best practices.
Features
- 🏗️ Modern Python packaging with pyproject.toml and uv
- 🔍 Code quality tools: Ruff for linting and formatting
- ✅ Pre-commit hooks for automated code quality checks
- 🧪 Comprehensive test framework with pytest
- 🐳 Docker support for development and deployment
- 🚀 GitHub Actions CI/CD workflows
- 📁 Well-structured project layout with src/ pattern
- 🖥️ Example CLI application using Click
- 📚 Comprehensive documentation