mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
ci-black-formatting - check syntax errors explicitly
This commit is contained in:
@@ -32,6 +32,19 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# python3 -m black .
|
# python3 -m black .
|
||||||
|
|
||||||
|
# black doesn't catch all syntax erors, so we check them explicitly.
|
||||||
|
- name: Check syntax errors
|
||||||
|
shell: sh
|
||||||
|
id: syntax-errors
|
||||||
|
run: |
|
||||||
|
ERROR=0
|
||||||
|
python3 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
|
||||||
|
python3 -W error -m compileall -q src/bonsai || ERROR=1
|
||||||
|
if [ $ERROR -ne 0 ]; then \
|
||||||
|
echo "One or more tests failed"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
# QA STEP
|
# QA STEP
|
||||||
- name: QA Step - check linting
|
- name: QA Step - check linting
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user