π Instructions: Execute each command in order, one by one. Wait for each command to complete before running the next one.
run.bat helpOr with PowerShell:
.\run.ps1 helprun.bat installOr with PowerShell:
.\run.ps1 installdirOr with PowerShell:
Get-ChildItemrun.bat benchmark-initialOr with PowerShell:
.\run.ps1 benchmark-initialdir *report*.txt issues_to_fix*.txt benchmark_results.jsonOr with PowerShell:
Get-ChildItem *report*.txt, issues_to_fix*.txt, benchmark_results.jsontype issues_to_fix_*.txtOr with PowerShell:
Get-Content issues_to_fix_*.txtpython tools/benchmark_code_quality.py --reportrun.bat fixOr with PowerShell:
.\run.ps1 fixgit statusrun.bat testOr with PowerShell:
.\run.ps1 testrun.bat benchmark-post-autofixOr with PowerShell:
.\run.ps1 benchmark-post-autofixrun.bat benchmark-compareOr with PowerShell:
.\run.ps1 benchmark-comparerun.bat benchmark-reportOr with PowerShell:
.\run.ps1 benchmark-reporttype issues_to_fix_*.txtOr with PowerShell:
Get-Content issues_to_fix_*.txt㪠Copy and paste this prompt in your AI agent:
Analyze the files in this project and fix the remaining code quality issues
that automated tools cannot fix. Focus on:
1. Type errors (MyPy issues)
2. Logic improvements
3. Performance optimizations
4. Code structure improvements
Explain each change you make and why it improves the code.
run.bat testOr with PowerShell:
.\run.ps1 testrun.bat benchmark-post-aiOr with PowerShell:
.\run.ps1 benchmark-post-airun.bat benchmark-compareOr with PowerShell:
.\run.ps1 benchmark-comparerun.bat benchmark-reportOr with PowerShell:
.\run.ps1 benchmark-reportπ€ Answer these questions:
-
What percentage of errors were fixed automatically?
- Answer: ___ (check benchmark report)
-
What types of errors were most difficult to fix?
- Answer: ___
-
Which tool did you find most useful?
- Answer: ___
-
How would you change your development process after this?
- Answer: ___
REM Check if dependencies are installed
pip list | findstr "black ruff mypy bandit"
REM Reinstall if needed
run.bat installOr with PowerShell:
# Check if dependencies are installed
pip list | Select-String "black|ruff|mypy|bandit"
# Reinstall if needed
.\run.ps1 installREM See specific errors
run.bat test-verbose
REM Verify code works
python main.pyOr with PowerShell:
# See specific errors
.\run.ps1 test-verbose
# Verify code works
python main.py- Go back to the previous step and make sure it completed successfully
- Check the output of each command for error messages
- Ask for help if you're stuck
If you get execution policy errors with PowerShell:
# Check current policy
Get-ExecutionPolicy
# Set policy for current user (if needed)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserIf Python is not recognized:
- Install Python from https://python.org
- Make sure to check "Add Python to PATH" during installation
- Restart Command Prompt/PowerShell after installation
If you encounter path length issues:
REM Enable long paths (Windows 10+)
git config --global core.longpaths true- Reduced at least 70% of initial errors
- Understand what each tool does
- Can explain the difference between auto-fixer and AI
- Applied at least 3 changes suggested by AI
- Code still works after all changes
- Know code quality tools
- Can automate repetitive tasks
- Know when to use AI vs automated tools
- Have a workflow to improve code
- Command Prompt: Use
run.batcommands - PowerShell: Use
.\run.ps1commands (recommended for better error handling)
- Windows uses backslashes (
\) in paths - Use quotes around paths with spaces:
"C:\Program Files\Python\python.exe"
- Python path should be in
PATHenvironment variable - Check with:
echo %PATH%(CMD) or$env:PATH(PowerShell)
Congratulations on completing the exercise! π
Remember: Code quality is a continuous process, not a destination.