diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 8e85f527..e07a277e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -32,7 +32,7 @@ jobs: python-version: "3.x" - name: Install Dependencies - run: pip install mkdocs-material pymdown-extensions + run: pip install "mkdocs<2.0" mkdocs-material pymdown-extensions - name: Build and Deploy Docs - run: mkdocs gh-deploy --force + run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/tests/core_engine/test_language_lens.py b/tests/core_engine/test_language_lens.py index 05bd9d43..8029f37d 100644 --- a/tests/core_engine/test_language_lens.py +++ b/tests/core_engine/test_language_lens.py @@ -190,12 +190,12 @@ def test_tier_3_lexical_scan(isolated_detector): # ============================================================================== def test_tier_4_heuristic_discovery(isolated_detector): """Proves the engine can blindly identify a file with no extension.""" - import os - + # Needs > 20 lines to trigger Tier 4. We inject C-style comments and structure. + # Hardcoded \n newlines to bypass Windows \r\n Universal Newline artifacts in CI content = ( - f"// C-style comment{os.linesep}" * 25 - + f"int main() {{ return 0; }}{os.linesep}" * 5 + "// C-style comment\n" * 25 + + "int main() { return 0; }\n" * 5 ) result = isolated_detector.inspect(