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
Thanks for the PR @fenopy! The idea is appreciated — consistent formatting is always a good thing.
For now I am holding off on merging this. The main concern is that a first-time format pass would touch nearly every file in the repo, making diffs and git blame much harder to read. For a project with occasional contributors this tradeoff does not feel worth it yet.
If the contributor base grows I will revisit this. Feel free to use black/prettier locally in your own workflow in the meantime!