Skip to content

v0.2.2 - Code Quality and Security Improvements

Choose a tag to compare

@luongnv89 luongnv89 released this 17 Nov 23:16
· 128 commits to main since this release

v0.2.2 - Code Quality and Security Improvements

🎯 Highlights

  • Python 3.10-3.14 support with comprehensive CI/CD testing
  • Security policy added (SECURITY.md)
  • Code quality improvements with reduced complexity
  • All linting errors fixed for clean CI/CD pipeline

✨ New Features

  • SECURITY.md: Comprehensive security policy with vulnerability reporting guidelines
  • Python 3.14 Support: Extended support to the latest Python version
  • Enhanced CI/CD: Testing matrix updated for Python 3.10-3.14

🐛 Bug Fixes

  • Fixed flake8 C901 complexity error in main() function
  • Fixed flake8 E501 line length errors in test fixtures
  • Fixed black target-version configuration (removed unsupported py314)

🔧 Refactoring

  • main() function: Reduced cyclomatic complexity from 12 to <10
    • Extracted print_help() function for help message display
    • Extracted parse_http_args() function for argument parsing
    • Extracted setup_http_server() function for HTTP configuration
  • Test fixtures: Improved readability with multi-line string concatenation
  • Docstrings: Fixed formatting to comply with pydocstyle

📚 Documentation

  • Added comprehensive SECURITY.md with:
    • Supported versions table
    • Security considerations for deployment
    • Responsible vulnerability disclosure process
    • Security best practices for users
    • Contact information and reporting channels

🏗️ CI/CD

  • Updated test matrix to Python 3.10, 3.11, 3.12, 3.13, 3.14
  • All linting checks now pass (black, isort, flake8, mypy, bandit, pydocstyle)
  • Updated Codecov upload to use Python 3.12

📦 Installation

pip install mitre-mcp==0.2.2
# or
pip install --upgrade mitre-mcp

🔄 Upgrade from 0.2.1

This is a drop-in replacement for 0.2.1 with no breaking changes. Simply upgrade:

pip install --upgrade mitre-mcp

📋 Full Changelog

Commits since v0.2.1:

  • docs: Add installation examples and screenshots to README
  • chore: Update Python version support from 3.9-3.12 to 3.10-3.14
  • docs: Add comprehensive security policy
  • refactor: Fix flake8 linting errors for CI/CD
  • chore: Bump version to 0.2.2