mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-20 15:11:09 +00:00
0c22349029
* chore(dev): add thread boundary detector * chore(dev): reduce thread boundary detector false positives
24 lines
592 B
Python
24 lines
592 B
Python
#!/usr/bin/env python3
|
|
"""CLI wrapper for the async/thread boundary detector."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from collections.abc import Sequence
|
|
from pathlib import Path
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
|
TEST_SUPPORT_PATH = REPO_ROOT / "backend" / "tests"
|
|
if str(TEST_SUPPORT_PATH) not in sys.path:
|
|
sys.path.insert(0, str(TEST_SUPPORT_PATH))
|
|
|
|
|
|
def main(argv: Sequence[str] | None = None) -> int:
|
|
from support.detectors.thread_boundaries import main as detector_main
|
|
|
|
return detector_main(argv)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|