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-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: |