Skip to content

Commit fa9dfbb

Browse files
committed
Patch Ruff for RustPython
Expose RustPython AST metadata fields, apply the RustPython package patch, and make CI usable on fork runners. Assisted-by: Codex:GPT-5
1 parent 9e4938c commit fa9dfbb

772 files changed

Lines changed: 11062 additions & 1886 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ jobs:
373373
runs-on: ${{ github.repository == 'astral-sh/ruff' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
374374
needs: determine_changes
375375
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
376-
timeout-minutes: 20
376+
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 20 || 40 }}
377377
env:
378378
# Line-tables-only debug info: faster builds, backtraces still work.
379379
CARGO_PROFILE_DEV_DEBUG: line-tables-only
@@ -483,7 +483,7 @@ jobs:
483483
runs-on: ${{ matrix.platform }}
484484
needs: determine_changes
485485
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
486-
timeout-minutes: 20
486+
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 20 || 40 }}
487487
env:
488488
# Line-tables-only debug info: faster builds, backtraces still work.
489489
CARGO_PROFILE_DEV_DEBUG: line-tables-only
@@ -690,7 +690,7 @@ jobs:
690690
needs.determine_changes.outputs.linter == 'true' ||
691691
needs.determine_changes.outputs.formatter == 'true'
692692
)
693-
timeout-minutes: 20
693+
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 20 || 40 }}
694694
env:
695695
# Line-tables-only debug info: faster builds, backtraces still work.
696696
CARGO_PROFILE_DEV_DEBUG: line-tables-only
@@ -808,7 +808,7 @@ jobs:
808808
- determine_changes
809809
# Only runs on pull requests, since that is the only we way we can find the base version for comparison.
810810
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && github.event_name == 'pull_request' && (needs.determine_changes.outputs.ty == 'true' || needs.determine_changes.outputs.py-fuzzer == 'true') }}
811-
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 10 || 20 }}
811+
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 10 || 30 }}
812812
steps:
813813
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
814814
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
plan:
7575
permissions:
7676
"contents": "read"
77-
runs-on: "depot-ubuntu-24.04-4"
77+
runs-on: ${{ github.repository == 'astral-sh/ruff' && 'depot-ubuntu-24.04-4' || 'ubuntu-latest' }}
7878
outputs:
7979
val: ${{ steps.plan.outputs.manifest }}
8080
tag: ${{ (inputs.tag != 'dry-run' && inputs.tag) || '' }}

.github/workflows/ty-ecosystem-analyzer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
matrix:
5353
revision: [base, pr]
5454
runs-on: ${{ github.repository == 'astral-sh/ruff' && 'depot-ubuntu-22.04-32' || 'ubuntu-latest' }}
55-
timeout-minutes: 5
55+
timeout-minutes: ${{ github.repository == 'astral-sh/ruff' && 5 || 10 }}
5656
steps:
5757
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5858
with:

0 commit comments

Comments
 (0)