Use black formatter action for pretty summaries

This commit is contained in:
Andrej730
2025-12-19 11:42:46 +05:00
parent 2c3281917a
commit fda3bd319f
+2 -3
View File
@@ -40,8 +40,7 @@ jobs:
- name: Black formatter - name: Black formatter
id: black id: black
run: | uses: psf/black@stable
black --diff --check .
continue-on-error: true continue-on-error: true
- name: Ruff check - name: Ruff check
@@ -60,7 +59,7 @@ jobs:
echo "::error::Syntax errors check failed, see 'syntax-errors' step for the details." && ERROR=1 echo "::error::Syntax errors check failed, see 'syntax-errors' step for the details." && ERROR=1
fi fi
if [ "${{ steps.black.outcome }}" != "success" ]; then if [ "${{ steps.black.outcome }}" != "success" ]; then
echo "::error::Black formatting check failed, see 'black' step for the details." && ERROR=1 echo "::error::Black formatting check failed, see Summary or 'black' step for the details." && ERROR=1
fi fi
if [ "${{ steps.ruff.outcome }}" != "success" ]; then if [ "${{ steps.ruff.outcome }}" != "success" ]; then
echo "::error::Ruff check failed, see 'ruff' step for the details." && ERROR=1 echo "::error::Ruff check failed, see 'ruff' step for the details." && ERROR=1