From 8585ab0169d93028125ddd40910c2d6177d9e04e Mon Sep 17 00:00:00 2001 From: vthaniel Date: Sun, 11 Jan 2026 23:46:31 +0530 Subject: [PATCH 1/2] Adopt the required lint on MSFT side to ovep-develop PR check --- .../workflows/reusable_linux_build_intel.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/reusable_linux_build_intel.yml b/.github/workflows/reusable_linux_build_intel.yml index a9b718bb2e736..224011bd832c9 100644 --- a/.github/workflows/reusable_linux_build_intel.yml +++ b/.github/workflows/reusable_linux_build_intel.yml @@ -181,3 +181,47 @@ jobs: name: vcpkg-manifest-install-log-${{ inputs.architecture }}-${{ inputs.build_config }} path: ${{ runner.temp }}/${{ inputs.build_config }}/${{ inputs.build_config }}/vcpkg-manifest-install.log if-no-files-found: ignore + + + lint-python-format: + name: Python format + runs-on: [self-hosted, Linux, X64] + + permissions: + contents: read + security-events: write + + steps: + - uses: actions/checkout@v6 + + - name: Create Virtual Env + run: | + python3 -m venv .venv + echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH + + - name: Update PATH + run: | + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + + - name: Install dependencies + run: | + set -e -x + python -m pip install -r requirements-dev.txt + lintrunner init + + - name: Run lintrunner on all files + run: | + set +e + if ! lintrunner --force-color --all-files --tee-json=lint.json -v; then + echo "" + echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner\`. To set up lintrunner locally, see https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#linting .\e[0m" + exit 1 + fi + + - name: Cleanup Virtual Environment + if: always() + run: | + if [ -d ".venv" ]; then + echo "Deleting virtual environment..." + rm -rf .venv + fi From 528c4c8c60adc28917cfb3ca0a6fc415cb7078a9 Mon Sep 17 00:00:00 2001 From: vthaniel Date: Mon, 12 Jan 2026 11:00:31 +0530 Subject: [PATCH 2/2] Remove unnecessary write permissions --- .github/workflows/reusable_linux_build_intel.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/reusable_linux_build_intel.yml b/.github/workflows/reusable_linux_build_intel.yml index 224011bd832c9..28e58fa9f53e0 100644 --- a/.github/workflows/reusable_linux_build_intel.yml +++ b/.github/workflows/reusable_linux_build_intel.yml @@ -189,7 +189,6 @@ jobs: permissions: contents: read - security-events: write steps: - uses: actions/checkout@v6