You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enable ruff format checks and reformat unconforming files (Metta-AI#267)
### TL;DR Added `ruff format --check` to CI workflow and pre-commit hook, and fixed formatting issues across the codebase. ### What changed? - Added `ruff format --check` command to the GitHub Actions build workflow - Added `ruff format --check` to the pre-commit hook to ensure code is properly formatted before commits - Fixed formatting issues across multiple files ### How to test? 1. Run `ruff format --check .` to verify all files are properly formatted 2. Make a commit to ensure the pre-commit hook correctly checks formatting 3. Push changes to verify the GitHub Actions workflow passes with the new format check ### Why make this change? This change enforces consistent code formatting across the codebase, making it more readable and maintainable. By adding format checking to both the pre-commit hook and CI workflow, we ensure that all code contributions adhere to the same formatting standards, reducing style-related merge conflicts and code review comments.
0 commit comments