feat: add universal formatting configuration (black, prettier, editorconfig) #71
Reference in New Issue
Block a user
No description provided.
Delete Branch "fenopy/KX-Bridge-Release:feat/formatting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notes
@viewit, please feel free to customize to your preferences. I was just looking to add some consistency between developers and editors.
All files require a first-time format
pip install -r requirements-dev.txt # Install blacknpm install # Install prettierblack . # Format Pythonnpm run format:web # Format JavaScript/web filesDescription
Adds universal code formatting configuration for Python and JavaScript/web files to maintain consistent code style across the project without requiring extensive tooling.
Includes:
.editorconfig- baseline formatting rules respected by all editorsrequirements-dev.txt- Black for Python formattingpackage.json- Prettier for JavaScript/JSON/HTML/CSS formattingDevelopers can format locally with
black .andnpm run format:webbefore commits.Related Issue
Closes # (if applicable)
Type
Tested with
Checklist