mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:09:49 +08:00
`ruff check .` reports I001 here since the file was added, but the Lint job only runs for paths that include tests/**, so the failure stayed invisible until this branch started touching tests/. Keep the tree lint-clean before the doc contract tests start depending on it.
13 lines
478 B
Python
13 lines
478 B
Python
"""Make ``doc_facts`` importable and keep the checks dependency-free.
|
|
|
|
These tests parse the repository rather than importing DeepTutor, so they need
|
|
no runtime dependencies — only the standard library and pytest. Running from
|
|
``docs/`` keeps them outside ``tests/conftest.py``, whose autouse fixtures build
|
|
the application container and would require the full dependency set.
|
|
"""
|
|
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|