- Organized and grouped import statements for better readability in health.py, metadata.py, releases.py, scan.py, search.py, version.py, viewer.py, and registry.py. - Updated type hints to use the new union syntax (e.g., str | None) for better clarity in scan.py, settings.py, tool_detect.py, and result.py. - Enhanced the handling of optional types in various functions to ensure more robust type checking. - Removed unnecessary blank lines and improved formatting for consistency. - Adjusted the logic in several test files to ensure compatibility with the updated import structure and type hints. (See <attachments> above for file contents. You may not need to search or read the file again.)
7 lines
209 B
Python
7 lines
209 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
# Keep this extremely boring + stable: tests live at <repo>/tests/ so repo root is 1 parent above.
|
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|