Dev 13 #15
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -31,8 +31,8 @@ jobs:
|
|||||||
- name: Code style check (isort + Black, one order — no conflict)
|
- name: Code style check (isort + Black, one order — no conflict)
|
||||||
run: |
|
run: |
|
||||||
echo "🔍 Applying isort then black (pyproject.toml: isort profile=black)..."
|
echo "🔍 Applying isort then black (pyproject.toml: isort profile=black)..."
|
||||||
isort .
|
python -m isort .
|
||||||
black .
|
python -m black .
|
||||||
echo "🔍 Checking that repo is already formatted (no diff after isort+black)..."
|
echo "🔍 Checking that repo is already formatted (no diff after isort+black)..."
|
||||||
git diff --exit-code || (
|
git diff --exit-code || (
|
||||||
echo "❌ Code style drift. Locally run: isort . && black . && git add -A && git commit -m 'style: isort + black'"
|
echo "❌ Code style drift. Locally run: isort . && black . && git add -A && git commit -m 'style: isort + black'"
|
||||||
|
|||||||
@@ -9,5 +9,6 @@ coverage>=7.0.0
|
|||||||
|
|
||||||
# Development tools
|
# Development tools
|
||||||
black>=23.0.0
|
black>=23.0.0
|
||||||
|
isort>=5.12.0
|
||||||
flake8>=6.0.0
|
flake8>=6.0.0
|
||||||
mypy>=1.0.0
|
mypy>=1.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user