diff --git a/.github/workflows/pr_style_bot.yml b/.github/workflows/pr_style_bot.yml index cf2439c4f2c4..14a8f8e3d8b4 100644 --- a/.github/workflows/pr_style_bot.yml +++ b/.github/workflows/pr_style_bot.yml @@ -13,39 +13,5 @@ jobs: uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main with: python_quality_dependencies: "[quality]" - pre_commit_script_name: "Download and Compare files from the main branch" - pre_commit_script: | - echo "Downloading the files from the main branch" - - curl -o main_Makefile https://raw.githubusercontent.com/huggingface/diffusers/main/Makefile - curl -o main_setup.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/setup.py - curl -o main_check_doc_toc.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/utils/check_doc_toc.py - - echo "Compare the files and raise error if needed" - - diff_failed=0 - if ! diff -q main_Makefile Makefile; then - echo "Error: The Makefile has changed. Please ensure it matches the main branch." - diff_failed=1 - fi - - if ! diff -q main_setup.py setup.py; then - echo "Error: The setup.py has changed. Please ensure it matches the main branch." - diff_failed=1 - fi - - if ! diff -q main_check_doc_toc.py utils/check_doc_toc.py; then - echo "Error: The utils/check_doc_toc.py has changed. Please ensure it matches the main branch." - diff_failed=1 - fi - - if [ $diff_failed -eq 1 ]; then - echo "❌ Error happened as we detected changes in the files that should not be changed ❌" - exit 1 - fi - - echo "No changes in the files. Proceeding..." - rm -rf main_Makefile main_setup.py main_check_doc_toc.py - style_command: "make style && make quality" secrets: bot_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file