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:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user