mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-20 07:43:20 +00:00
lint(ruff): fix E402 and related import issues
- Fix E402 by removing sys.path hacks and ensuring imports are at module top level - Replace ad-hoc imports with proper package imports (filter_plugins, lookup_plugins, module_utils, cli) - Make lookup plugins importable via package paths (e.g. lookup_plugins.application_gid) - Clean up test imports to rely on installed package layout instead of sys.path manipulation - Partially fix F821 caused by missing/invalid imports This establishes a consistent, ruff-compliant import architecture across CLI, filters, plugins, and tests.
This commit is contained in:
@@ -7,7 +7,6 @@ from ruamel.yaml import YAML
|
||||
|
||||
import sys
|
||||
import os
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||
from module_utils.entity_name_utils import get_entity_name
|
||||
|
||||
# Paths to the group-vars files
|
||||
|
||||
Reference in New Issue
Block a user