mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 14:06:26 +00:00
Use black formatter action for pretty summaries
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user