some fix again
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -28,15 +28,16 @@ jobs:
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Code formatting check (Black)
|
||||
- name: Code style check (isort + Black, one order — no conflict)
|
||||
run: |
|
||||
echo "🔍 Checking code formatting with Black..."
|
||||
black --check . || (echo "❌ Code formatting issues found. Run 'black .' to fix." && exit 1)
|
||||
|
||||
- name: Import sorting check (isort)
|
||||
run: |
|
||||
echo "🔍 Checking import sorting with isort..."
|
||||
isort --check-only . || (echo "❌ Import sorting issues found. Run 'isort .' to fix." && exit 1)
|
||||
echo "🔍 Applying isort then black (pyproject.toml: isort profile=black)..."
|
||||
isort .
|
||||
black .
|
||||
echo "🔍 Checking that repo is already formatted (no diff after isort+black)..."
|
||||
git diff --exit-code || (
|
||||
echo "❌ Code style drift. Locally run: isort . && black . && git add -A && git commit -m 'style: isort + black'"
|
||||
exit 1
|
||||
)
|
||||
|
||||
- name: Linting (flake8) - Critical errors
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user