← Back to Pull requests

Fix cross-platform paths and enforce ruff formatting in CI #2

Merged
whyvineet merged 12 files (65 lines) on Oct 02, 2026 15:57 UTC
View on GitHub
whyvineet whyvineet commented on Oct 02, 2026 14:45 UTC
Author

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 use PureWindowsPath.

Additionally, the previous formatting discrepancies were corrected using ruff format, and ruff format --check has been added to the CI process in order to automatically identify any future formatting problems. (as per #1 )

Diff: 65 lines (+29 / -36) across 12 files Reviewer: Aniketsy Review duration: 72m
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
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 4 substantive comment(s)
0.94
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
91%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
whyvineet whyvineet commented on Oct 02, 2026 14:56 UTC
Author

@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 Aniketsy commented on Oct 02, 2026 15:22 UTC
Contributor

@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

whyvineet whyvineet commented on Oct 02, 2026 15:24 UTC
Author

Should I create another issue for this, or just fix it here?

Aniketsy Aniketsy commented on Oct 02, 2026 15:28 UTC
Contributor

Let's just fix here only

Aniketsy Aniketsy approved these changes on Oct 02, 2026 15:57 UTC
Approved Reviewer

LGTM 👍

Thanks :)

Reviewers
Assignees
whyvineet whyvineet
Labels
risk: low confidence: 91.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44.2% (MEDIUM) · Higher = larger blast radius
44.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 91.2% · Lower = rushed or shallow review
91.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 3.9% · Safe to merge
3.9%
Repository