From e0b17a8063f3d65db54455ff781a031960b6c282 Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Mon, 22 Jan 2024 13:55:05 +0100 Subject: [PATCH] Run ruff format check --- .github/workflows/tox.yml | 6 +++++- tox.ini | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 3019736..2713cf4 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -92,7 +92,11 @@ jobs: run: | python -m pip install poetry tox - - name: Run ruff + - name: Run ruff format check + run: | + tox -e format-check + + - name: Run ruff lint continue-on-error: true # deactivate for now (need to fix the issues over time) run: | tox -e lint diff --git a/tox.ini b/tox.ini index 176bf20..e7e178a 100644 --- a/tox.ini +++ b/tox.ini @@ -38,6 +38,13 @@ commands= poetry run ruff format --check {[testenv]py_folders} poetry run ruff {[testenv]py_folders} +[testenv:format-check] +envdir = {toxworkdir}/py312 +basepython = python3.12 +commands= + poetry install --no-root + poetry run ruff format --check {[testenv]py_folders} + [testenv:format] envdir = {toxworkdir}/py312 basepython = python3.12