mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
linter github workflow - use uv for acquiring black
This commit is contained in:
@@ -23,10 +23,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install 'black>=24.10.0'
|
|
||||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
uv tool install ruff
|
uv tool install ruff
|
||||||
|
uv tool install black
|
||||||
|
|
||||||
# black doesn't catch all syntax errors, so we check them explicitly.
|
# black doesn't catch all syntax errors, so we check them explicitly.
|
||||||
- name: Check syntax errors
|
- name: Check syntax errors
|
||||||
@@ -41,7 +40,7 @@ jobs:
|
|||||||
- name: Black formatter
|
- name: Black formatter
|
||||||
id: black
|
id: black
|
||||||
run: |
|
run: |
|
||||||
python3 -m black --diff --check .
|
uvx black --diff --check .
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Ruff check
|
- name: Ruff check
|
||||||
|
|||||||
Reference in New Issue
Block a user