Fix failing tests and exclude .zen_venv from linting

- Fix test_resource_loading_success by removing outdated mock targeting non-existent 'files' import
- Simplify resource loading test to validate registry functionality directly
- Add .zen_venv exclusion to ruff and black in code_quality_checks.sh
- All tests now passing (793/793) with clean linting
This commit is contained in:
Sven Lito
2025-08-10 22:18:08 +07:00
parent 5e599b9e7d
commit 673d78be6d
2 changed files with 8 additions and 48 deletions

View File

@@ -67,16 +67,16 @@ echo "📋 Step 1: Running Linting and Formatting Checks"
echo "--------------------------------------------------"
echo "🔧 Running ruff linting with auto-fix..."
$RUFF check --fix --exclude test_simulation_files
$RUFF check --fix --exclude test_simulation_files --exclude .zen_venv
echo "🎨 Running black code formatting..."
$BLACK . --exclude="test_simulation_files/"
$BLACK . --exclude="test_simulation_files/" --exclude=".zen_venv/"
echo "📦 Running import sorting with isort..."
$ISORT . --skip-glob=".zen_venv/*" --skip-glob="test_simulation_files/*"
echo "✅ Verifying all linting passes..."
$RUFF check --exclude test_simulation_files
$RUFF check --exclude test_simulation_files --exclude .zen_venv
echo "✅ Step 1 Complete: All linting and formatting checks passed!"
echo ""