Imported from basnijholt/privata (
AGENTS.md). Install upstream withnpx skills add basnijholt/privata. Copyright stays with the author.
Repository Guidelines
Privata is a small Python package for AST-based module privacy checks.
Development
- Use
uv sync --extra dev --group docsfor a full development environment. - Run
uv run pytestfor tests. The 100% coverage gate assumes Python 3.12+; on 3.10/3.11 the PEP 695 code paths cannot execute, so runuv run pytest --cov-fail-under=0there instead (CI does the same). - Run
uv run ruff check .,uv run ruff format --check .,uv run mypy src tests, anduv run ty checkbefore submitting changes. - Use
uv buildto verify packaging.
Structure
src/privata/_checker.pycontains the checker implementation.src/privata/cli.pyexposes the console script.tests/test_checker.pycontains focused behavior tests.docs/contains the Zensical documentation site.
Style
- Keep runtime dependencies minimal.
- Prefer standard-library parsing and typed data structures.
- Preserve the rule that test imports do not count when deciding whether a symbol should remain public.