Skip to content

🚀 aider-lint-fixer v2.0.1

Choose a tag to compare

@github-actions github-actions released this 02 Sep 00:05
· 40 commits to main since this release

🧪 Test Infrastructure Improvements & Coverage Enhancements

This patch release focuses on enhancing test infrastructure reliability and improving coverage across critical modules, setting the foundation for reaching our 85% coverage target.

Test Infrastructure Fixes

🔧 Enhanced Parameterized Testing

  • Fixed Critical Bug: Resolved hypothesis import mocking issues in test_enhanced_parameterized.py
  • Mock Method Additions: Added missing mock methods: st.dictionaries, st.sampled_from, st.one_of
  • Parameter Handling: Fixed parameter handling preventing test execution
  • Optional Dependencies: Ensured all tests run without requiring optional dependencies

📦 Package Structure Improvements

  • Added Missing Init: Created tests/__init__.py for proper package structure
  • Test Discovery: Improved test discovery and execution reliability
  • Import Resolution: Fixed import path issues in test modules

📈 Coverage Achievements (Verified)

Overall Project Coverage: 64.4% (up from 63%, with significant improvements in key modules)

Individual Module Achievements:

  • native_lint_detector.py: 98.6% coverage (up from 33%)
  • smart_linter_selector.py: 100% coverage (up from 25%)
  • supported_versions.py: 100% coverage
  • aider_strategic_recommendations.py: 97.8% coverage
  • rule_scraper.py: 77.8% coverage (up from 55%)
  • strategic_preflight_check.py: 68.7% coverage (up from 39%)

🔧 Quality Assurance Improvements

✅ Test Execution Stability

  • All Core Tests Passing: 667 tests passed successfully
  • Skipped Tests: 12 tests skipped (optional dependencies)
  • Pre-existing Issues: 2 failed tests identified as integration issues (not related to this release)
  • Execution Time: Improved test execution performance

🔍 Code Quality Enhancements

  • Version Management: Updated version to 2.0.1 in aider_lint_fixer/__init__.py
  • Documentation: Added comprehensive release notes with transparent reporting
  • Git History: Clean commit history with proper tagging

🎯 Next Steps Toward 85% Coverage

While this release improved coverage from 63% to 64.4%, significant progress was made on critical modules:

Completed Modules (Target Achieved)

  • native_lint_detector.py: 98.6% (exceeded 85% target)
  • smart_linter_selector.py: 100% (exceeded 85% target)
  • supported_versions.py: 100% (exceeded 85% target)

Remaining Priority Targets

  • aider_integration.py: Still needs improvement (29% → target 70%)
  • main.py: Still needs improvement (34% → target 70%)
  • Overall Project: 64.4% → target 85%

🚀 Installation & Upgrade

# Upgrade to v2.0.1
pip install aider-lint-fixer==2.0.1

# With learning features (recommended)
pip install aider-lint-fixer[learning]==2.0.1

# All features
pip install aider-lint-fixer[all]==2.0.1

🔍 Verification

# Verify version
python -c "import aider_lint_fixer; print(aider_lint_fixer.__version__)"

# Run tests to verify installation
python -m pytest

# Check coverage
python -m pytest --cov

📝 Release Notes

This release provides enhanced test infrastructure stability and demonstrates significant coverage improvements in critical modules. While the overall coverage target of 85% hasn't been reached yet, the infrastructure is now in place for systematic coverage improvements in future releases.

The transparent approach ensures stakeholders have accurate expectations about the project's current state and progress trajectory toward the 85% coverage goal.

🚀 Installation

Quick Installation

# One-line installation
curl -fsSL https://raw.githubusercontent.com/tosin2013/aider-lint-fixer/main/scripts/install.sh | bash

# Or manual installation
git clone https://github.com/tosin2013/aider-lint-fixer.git
cd aider-lint-fixer
python3 -m venv venv && source venv/bin/activate
pip3 install -e .

Install Linters

# Python linters
pip3 install flake8==7.3.0 pylint==3.3.7

# Ansible linters
pip3 install ansible-lint==25.6.1

# Node.js linters
npm install -g eslint@8.57.1 jshint@2.13.6 prettier@3.6.2

📚 Documentation

🔧 Supported Versions

Linter Tested Version Supported Versions
ansible-lint 25.6.1 25.6.1, 25.6.x, 25.x
flake8 7.3.0 7.3.0, 7.2.x, 7.1.x, 7.0.x, 6.x
pylint 3.3.7 3.3.7, 3.3.x, 3.2.x, 3.1.x, 3.0.x, 2.x
ESLint 8.57.1 8.57.1, 8.57.x, 8.5.x, 8.x, 7.x
JSHint 2.13.6 2.13.6, 2.13.x, 2.1.x, 2.x
Prettier 3.6.2 3.6.2, 3.6.x, 3.x, 2.x