Skip to content

v1.0.1 - Code Formatting Standardization

Latest

Choose a tag to compare

@Forence1999 Forence1999 released this 10 Feb 04:16
· 2 commits to master since this release

馃帹 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 explicit editor.tabSize settings for all language modes and disabled auto-detection
  • pyproject.toml: Updated Ruff configuration with line-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