From: Jörg Behrmann Date: Thu, 19 Sep 2024 21:24:09 +0000 (+0200) Subject: ci: add ruff format check X-Git-Tag: v25~276^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407ddb39cce768443d85149889a19e25ade592ce;p=thirdparty%2Fmkosi.git ci: add ruff format check --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa25f5705..4acf226b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,11 +27,16 @@ jobs: python3 -m pip install --break-system-packages codespell mypy reuse ruff npm install -g pyright - - name: Run ruff + - name: Run ruff check run: | ruff --version ruff check mkosi/ tests/ kernel-install/50-mkosi.install + - name: Run ruff format + run: | + ruff --version + ruff format --check mkosi/ tests/ kernel-install/50-mkosi.install + - name: Check that tabs are not used in code run: sh -c '! git grep -P "\\t" "*.py"'