Skip to content

Conversation

@HideBa
Copy link
Member

@HideBa HideBa commented Jul 28, 2025

This PR modernizes the development toolchain by migrating from Poetry to UV and consolidating linting
tools with Ruff.

πŸ“¦ Package Management Migration

  • Poetry β†’ UV: Migrated from Poetry to UV for faster dependency resolution and installation
  • pyproject.toml: Converted to standard PEP 621 format with hatchling build backend
  • Dependencies: Updated all dependencies to latest versions
  • Python support: Updated from >=3.9 to >=3.10 (required for latest Click)

πŸ”§ Development Tools Overhaul

  • Ruff: Replaced flake8, black, and isort with a single, fast linter/formatter (~10-100x faster)
  • Typos: Replaced mypy with typos spell checker (more appropriate for this codebase)
  • Configuration: All tools configured in pyproject.toml with sensible defaults

πŸ› οΈ New Makefile Commands

make lint # Ruff linting
make typos # Spell checking
make format # Code formatting
make format-check # Check formatting without changes
make fix # Auto-fix linting issues
make check # Run all checks (lint, typos, test, format-check)

πŸ” Issues Fixed

During migration, fixed several typos discovered by the new spell checker:

  • tranform_polygon β†’ transform_polygon
  • indicies β†’ indices
  • classifed β†’ classified

πŸ—οΈ CI/CD Updates

  • GitHub Actions: Updated workflows to use UV and new toolchain
  • Repository: Fixed references from HideBa/ahn_cli to tudelft3d/ahn_cli
  • Python matrix: Updated to test Python 3.10, 3.11, 3.12

πŸ“š Documentation Updates

  • README.md: Added UV installation option
  • CLAUDE.md: Updated with new commands and toolchain information

βœ… Verification

  • All 11 tests pass βœ…
  • Linting with Ruff passes βœ…
  • Spell checking passes βœ…
  • Code formatting verified βœ…
  • No regressions detected βœ…

This migration brings the project up to modern Python development standards while maintaining full
backward compatibility and test coverage

@HideBa HideBa merged commit aa65a3b into main Jul 28, 2025
3 checks passed
@HideBa HideBa deleted the replace-poetry branch July 28, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants