From a5244e34827594597025e43e769458940c901e45 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 24 Mar 2026 17:15:23 -0700 Subject: [PATCH] github: workflows: python_lint: Switch to ruff for formatting Ruff's formatter is fast and has matured quite a bit. Switch to it for Python formatting over yapf. Signed-off-by: Nathan Chancellor --- .github/workflows/python_lint.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index d8a2a6a..28cd6ca 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -23,9 +23,12 @@ jobs: - name: Setup uv uses: astral-sh/setup-uv@v7 - - name: ruff + - name: ruff check run: uvx ruff check . + - name: ruff format + run: uvx ruff format --diff . + # This is an opinionated list of disabled warnings. # It potentially makes sense to eventually remove # this in favor of a per-project configuration but @@ -48,6 +51,3 @@ jobs: # W1509: subprocess-popen-preexec-fn - name: pylint run: uvx pylint --disable C0114,C0115,C0116,C0301,C0302,R0801,R0902,R0903,R0911,R0912,R0913,R0914,R0915,W1509 --jobs $(nproc) $(git ls-files '*.py') - - - name: yapf - run: uvx yapf --diff --recursive $GITHUB_WORKSPACE