Back

ruff #22935

Apply ruff formatting to mdtests

by amyreese · Feb 06, 2026 at 19:14 UTC · scan-cdaf481dc8889ec4

Critical Risk (85%)

Get this automatically on every PR

Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.

Install App

Risk Assessment

Risk level: Critical (85%)

Risk Drivers

  • large_diff: Large change: 2746 lines modified
  • high_file_spread: Touches 64 files
  • multiple_concerns: Spans 23 directories
  • api_surface_change: API surface changed in 4 file(s)

Intent

3/3 criteria met

Apply ruff formatting to markdown tests and update related configurations.

Acceptance Criteria

  • Replace blacken-docs with ruff in pre-commit hooks.

    .pre-commit-config.yaml replaces blacken-docs with ruff.

  • Preserve intentional formatting in markdown tests.

    fmt:skip directives added in mdtest files like annotations/self.md.

  • Format markdown tests and update snapshots.

    Changes across multiple mdtest files indicate formatting updates.

Confidence: 95.0% Source: pr description AI: openai

Contributors

amyreese PR Author 4 commits + Trusted
Account Age: 6510 days
Prior PRs: 51
Merged: 36

Trusted contributor with 36 merged PRs. maintains 168 public repositories. has 644 followers. unfamiliar with 10 files being modified.

Evidence

Evidence Completeness: 43.0%
ci_passing Unavailable
build_successful Unavailable
tests_passing Passing
Missing: lint_passing, security_scan_clean, coverage_maintained

Supply Chain

None Risk
Modifies dependencies
Modifies lockfile
Modifies CI config
Modifies build scripts

Focus Files

Review 64 file(s)

crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_A_possibly-undefined…_(fc7b496fd1986deb).snap +327

327 lines changed

medium
crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Cannot_override_a_me…_(338615109711a91b).snap +623

623 lines changed

medium
crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloaded_methods_d…_(861757f48340ed92).snap +252

252 lines changed

medium
crates/ty_python_semantic/resources/mdtest/snapshots/override.md_-_`typing.override`_-_Basics_(b7c220f8171f11f0).snap +494

494 lines changed

medium
crates/ty_python_semantic/resources/mdtest/snapshots/overloads.md_-_Overloads_-_Invalid_-_Inconsistent_decorat…_-_`@final`_(f8e529ec23a61665).snap +89

89 lines changed

low
.pre-commit-config.yaml +33

Configuration

low
crates/ty_python_semantic/resources/mdtest/snapshots/final.md_-_Tests_for_the_`@typi…_-_Overloads_in_statica…_(29a698d9deaf7318).snap +86

86 lines changed

low
crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_invalid_`__…_(c626bde8651b643a).snap +74

74 lines changed

low
crates/ty_python_semantic/resources/mdtest/import/star.md +71

71 lines changed

low
crates/ty_python_semantic/resources/mdtest/snapshots/for.md_-_For_loops_-_Possibly_missing_`__…_(77269542b8e81774).snap +72

72 lines changed

low

+54 more files

Triage

138

minutes to review

high

effort level

none

staleness risk

Allocate focused review time

Recommendation

REQUEST CHANGES 47.0% readiness

Critical risk level requires changes before approval

Next Steps

Concern

Consider breaking into smaller PRs

Question

Why is lint_passing missing? Consider adding this check.

Question

Why is security_scan_clean missing? Consider adding this check.