mirror of
https://github.com/AgriciDaniel/claude-seo.git
synced 2026-11-25 07:30:08 +01:00
Prepare v2.2.5 as a reliability and Google-currency release. - package deterministic update data in manual installations - add the split lxml HTML-clean dependency and runtime check - harden JSON-LD graph validation and placeholder handling - replace deprecated accessibility capture with bounded Chromium CDP - make render truncation explicit and reject empty Agent-UX evidence - enforce managed-runtime script references across user guidance - refresh Google Search and Lighthouse guidance through August 2026 - reconcile manifests, skill metadata, installers, and release docs No private checkout, installed plugin cache, tag, or release was changed. Verified: - python -m pytest tests/ -q: 439 passed in 66.23s - Ruff, compileall, portability, consistency, and diff checks passed - pip-audit found no known vulnerabilities - strict Claude plugin validation and Bash syntax checks passed - native PowerShell execution was unavailable; static tests passed Co-Authored-By: GPT-5 <noreply@openai.com>
38 lines
1.5 KiB
Python
38 lines
1.5 KiB
Python
"""Packaging metadata and lint-config guards."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_pyproject_has_authors_and_keywords() -> None:
|
|
text = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
|
|
assert 'authors = [' in text
|
|
assert 'name = "Daniel Agrici"' in text
|
|
assert "email =" not in text
|
|
for keyword in ("seo", "claude-code", "schema-markup", "e-e-a-t", "geo"):
|
|
assert f'"{keyword}"' in text
|
|
|
|
|
|
def test_pyproject_has_minimal_ruff_config_only() -> None:
|
|
text = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
|
|
assert "[tool.ruff]" in text
|
|
assert 'target-version = "py310"' in text
|
|
assert "line-length = 100" in text
|
|
assert "[tool.ruff.lint]" in text
|
|
assert 'select = ["E", "F", "W", "I"]' in text
|
|
assert 'ignore = ["E501"]' in text
|
|
|
|
|
|
def test_requirements_accept_selected_security_compatibility_floors() -> None:
|
|
text = (REPO_ROOT / "requirements.txt").read_text(encoding="utf-8")
|
|
assert re.search(r"^lxml>=6\.1\.1,<7\.0\.0", text, re.MULTILINE)
|
|
assert re.search(r"^lxml_html_clean>=0\.4\.3,<1\.0\.0", text, re.MULTILINE)
|
|
assert re.search(r"^urllib3>=2\.7\.0,<3\.0\.0", text, re.MULTILINE)
|
|
assert re.search(r"^numpy>=1\.26\.0,<3\.0\.0", text, re.MULTILINE)
|
|
assert re.search(r"^google-auth-httplib2>=0\.4\.0,<1\.0\.0", text, re.MULTILINE)
|
|
assert re.search(r"^google-ads>=25\.0\.0,<40\.0\.0", text, re.MULTILINE)
|