some fix again

This commit is contained in:
2026-02-01 23:16:11 +03:00
parent 49432acb24
commit c72c876de7

View File

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