@@ -448,55 +448,3 @@ jobs:
448448run :wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/extra_tests/snippets/stdlib_random.py
449449 -name :run cpython unittest
450450run :wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/Lib/test/test_int.py
451-
452- auto_format_commit :
453- needs :[rust_tests, exotic_targets, snippets_cpython, lint, miri, wasm, wasm-wasi]
454- permissions :
455- contents :write
456- pull-requests :write
457- name :Auto-format code
458- runs-on :ubuntu-latest
459- if :${{ !contains(github.event.head_commit.message, '[skip ci]') }}
460- concurrency :
461- group :fmt-${{ github.ref }}
462- cancel-in-progress :true
463-
464- steps :
465- -name :Checkout code
466- uses :actions/checkout@v5
467- with :
468- fetch-depth :0
469- ref :${{ github.head_ref || github.ref_name }}
470-
471- -name :Setup Rust
472- uses :dtolnay/rust-toolchain@stable
473- with :
474- components :rustfmt
475-
476- -name :Run cargo fmt
477- run :|
478- echo "Running cargo fmt --all"
479- cargo fmt --all
480-
481- -name :Commit and push if changes
482- id :commit
483- run :|
484- git config user.name "github-actions[bot]"
485- git config user.email "github-actions[bot]@users.noreply.github.com"
486- if [ -n "$(git status --porcelain)" ]; then
487- git add -u
488- git commit -m "Auto-format code [skip ci]"
489- git push
490- echo "formatted=true" >> $GITHUB_OUTPUT
491- else
492- echo "formatted=false" >> $GITHUB_OUTPUT
493- fi
494-
495- -name :Comment on PR if formatting was applied
496- if :steps.commit.outputs.formatted == 'true' && github.event_name == 'pull_request'
497- uses :marocchino/sticky-pull-request-comment@v2
498- with :
499- message :|
500- Code has been automatically formatted.
501- No action needed.
502- the changes were committed with `[skip ci]`.