<#9689 refactor: Use the `Project.dirs` API in mor...
# meltano-repo-activity
g
#9689 refactor: Use the `Project.dirs` API in more places Pull request opened by edgarrmondragon ## Description ## Related Issues • #9580 ## Summary by Sourcery Refactor path handling to consistently use the Project.dirs API and tighten related tests, particularly around plugin lockfiles, run and meltano directories, and Hub connectivity error handling. Enhancements: • Replace direct project path helper usages with Project.dirs methods for plugin lockfiles, run directory symlinks, and meltano directory paths. • Adjust Hub CLI tests to use a session-bound requests-mock context manager for connection failure scenarios. • Add explicit type assertions around plugin canonical representations and plugin parent relationships in tests to clarify expectations. Tests: • Update plugin and project service tests to rely on Project.dirs-based lockfile paths and directory roots, and to assert dictionary structure for canonical plugin data. ## Summary by Sourcery Refactor project path handling to rely on the Project.dirs service and tighten related tests and Hub connectivity handling. Enhancements: • Replace direct project path helpers with Project.dirs-based methods for plugin lockfiles, run directory symlinks, meltano directory paths, and telemetry analytics file. • Update Hub CLI ping failure handling to use a session-bound requests-mock context manager for connection errors. • Clarify plugin canonical representations and parent relationships in tests with explicit type assertions. Tests: • Adjust plugin and project service tests to use Project.dirs-derived lockfile and plugin directory paths and to validate canonical plugin dictionaries. meltano/meltano