Closed
fix: apply pre-commit formatting fixes for 0.4.0 branch code#10
Conversation
… unused shared_mount variable
…t and error handling
…n server (first working version)
…rtbeat management
…t_dir' and improve error logging
…hance environment handling
…error handling for workdir existence
Co-authored-by: Copilot <copilot@github.com>
…n for streaming Co-authored-by: Copilot <copilot@github.com>
…he folder options Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…_root, shares, and cache_folder Co-authored-by: Copilot <copilot@github.com>
- Implement a fake_mars executable for testing purposes. - Create unit tests for tools, server functions, client, log filtering, and WebSocket server. - Add integration tests for pipe and stream modes of the HTTP server. - Ensure comprehensive coverage of request handling, error scenarios, and data integrity. Co-authored-by: Copilot <copilot@github.com>
- Merge 0.4.0 branch content and apply all formatting fixes - ruff-format: reformat multiple files for line length compliance - ruff: fix unused imports (F401), unused variables (F841), import ordering (I001) - ruff: add noqa: E402 to module-level imports after function definitions - ruff: move imports before pytestmark in test_70_ws_integration.py - mdformat: reformat k8s/DESIGN.md - trailing-whitespace, end-of-file-fixer, pretty-format-toml: misc fixes
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job pre-commit
fix: apply pre-commit formatting fixes for 0.4.0 branch code
Jun 16, 2026
gbiavati
approved these changes
Jun 16, 2026
gbiavati
left a comment
Contributor
There was a problem hiding this comment.
Formatting changes are always welcome if they make tests not fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
pre-commitCI job on the0.4.0branch was failing because new code introduced in that branch had formatting violations detected byruff,ruff-format,mdformat, and several other hooks — causing a non-empty diff and exit code 1.Changes
ruff-format: Reformatted several files to comply with 88-char line length (multi-arg function calls split onto separate lines)rufflint:F401: Removed unused imports (pytest,os,Result) in test filesF841: Removed unused variabletargetintest_60_integration_stream.pyI001: Fixed import ordering across multiple test and source filesE402: Added# noqa: E402to the late module-level imports inserver_cache_and_stream.py; movedcads_mars_serverimports abovepytestmarkintest_70_ws_integration.pymdformat: Reformattedk8s/DESIGN.mdk8s/DESIGN.md,.gitignore), and TOML formatting (pyproject.toml)The notable manual fix was in
server_cache_and_stream.py, where late imports (after function definitions) required explicit suppression: