Fix cross-platform paths and enforce ruff formatting in CI #2
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.44) × (1 − Review Confidence (0.91)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 65 lines diff across 12 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.251
Real PR Conversation Timeline
6 items
@Aniketsy, are these failing test cases expected to fail for now? From what I can see, the failures seem related to path parsing and normalization in the mypy, pyright, and ty adapters, but I'm not sure yet...
FAILED tests/adapters/test_mypy.py::test_parse_basic_errors_from_captured_fixture - AssertionError: assert 'tests\\fixtu...sic_errors.py' == 'basic_errors.py'
- basic_errors.py
+ tests\fixtures\basic_errors.py
FAILED tests/adapters/test_pyright.py::test_parse_basic_errors_from_captured_fixture - AssertionError: assert 'd:\\rety\\re...sic_errors.py' == 'basic_errors.py'
- basic_errors.py
+ d:\rety\rety\tests\fixtures\basic_errors.py
FAILED tests/adapters/test_ty.py::test_parse_basic_errors_from_captured_fixture - AssertionError: assert 'tests\\fixtu...sic_errors.py' == 'basic_errors.py'
- basic_errors.py
+ tests\fixtures\basic_errors.py
FAILED tests/adapters/test_ty.py::test_parse_windows_absolute_path_keeps_drive_letter - AssertionError: assert 'C:\\work\\proj\\src\\foo.py' == 'foo.py'
- foo.py
+ C:\work\proj\src\foo.py
@Aniketsy, are these failing test cases expected to fail for now?
@whyvineet i think its time to fix now... i'm happy to see the ci green
Should I create another issue for this, or just fix it here?
Let's just fix here only
Approved
LGTM 👍
Thanks :)
Aniketsy
whyvineet
Cross-platform path handling has been fixed together with the enforcement of CI formatting rules in
rety. Windows-style paths are now handled correctly on all platforms, fixtures that are captured use normalized paths, and assertions involving platform-independent paths now usePureWindowsPath.Additionally, the previous formatting discrepancies were corrected using
ruff format, andruff format --checkhas been added to the CI process in order to automatically identify any future formatting problems. (as per #1 )