From e72bee2b34b48ed99836237e359da14ef64d95a4 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Tue, 27 Oct 2026 21:44:04 -0700 Subject: [PATCH] Name the Undeclared Root Default Beside the uv Workspace Exception The python-codestyle "Two profiles" paragraph and the spec's python profileNote said every Python directory is declared, except a uv workspace. The validator also gates an undeclared root where a root pyproject.toml is tracked, per WORKFLOW.md D1.2. Both texts now state that default, matching references/profiles.md. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/python-codestyle/SKILL.md | 3 ++- .claude-plugin/fleet-skills/.source-digests/python-codestyle | 2 +- .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md | 3 ++- .github/skills/python-codestyle/SKILL.md | 3 ++- spec/project-types.json | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.agents/skills/python-codestyle/SKILL.md b/.agents/skills/python-codestyle/SKILL.md index 46696672e..abb447272 100644 --- a/.agents/skills/python-codestyle/SKILL.md +++ b/.agents/skills/python-codestyle/SKILL.md @@ -46,7 +46,8 @@ A profile belongs to a declared directory, not to the repository. Each deliverab build-profile directory of its own. The profile decides only how the tools are installed, never what is owed. Every Python directory owes lint, format, a type check, a `tests/` suite, and coverage. A repo declares each in the hub validator's `python-directories` input, except that a uv -workspace is declared once, by its root. +workspace is declared once, by its root. A repo declaring none has its root gated only where it +tracks a root `pyproject.toml`, as `WORKFLOW.md` D1.2 states. `references/profiles.md` holds the full profile specification and the rule for splitting Python across directories. It also holds the toolchain axes a directory adapts: type checker, dependency diff --git a/.claude-plugin/fleet-skills/.source-digests/python-codestyle b/.claude-plugin/fleet-skills/.source-digests/python-codestyle index b328dbc0b..62548b0b6 100644 --- a/.claude-plugin/fleet-skills/.source-digests/python-codestyle +++ b/.claude-plugin/fleet-skills/.source-digests/python-codestyle @@ -1 +1 @@ -bd10464910ef527d +6f382744da290b2b diff --git a/.claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md b/.claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md index 46696672e..abb447272 100644 --- a/.claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md +++ b/.claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md @@ -46,7 +46,8 @@ A profile belongs to a declared directory, not to the repository. Each deliverab build-profile directory of its own. The profile decides only how the tools are installed, never what is owed. Every Python directory owes lint, format, a type check, a `tests/` suite, and coverage. A repo declares each in the hub validator's `python-directories` input, except that a uv -workspace is declared once, by its root. +workspace is declared once, by its root. A repo declaring none has its root gated only where it +tracks a root `pyproject.toml`, as `WORKFLOW.md` D1.2 states. `references/profiles.md` holds the full profile specification and the rule for splitting Python across directories. It also holds the toolchain axes a directory adapts: type checker, dependency diff --git a/.github/skills/python-codestyle/SKILL.md b/.github/skills/python-codestyle/SKILL.md index 46696672e..abb447272 100644 --- a/.github/skills/python-codestyle/SKILL.md +++ b/.github/skills/python-codestyle/SKILL.md @@ -46,7 +46,8 @@ A profile belongs to a declared directory, not to the repository. Each deliverab build-profile directory of its own. The profile decides only how the tools are installed, never what is owed. Every Python directory owes lint, format, a type check, a `tests/` suite, and coverage. A repo declares each in the hub validator's `python-directories` input, except that a uv -workspace is declared once, by its root. +workspace is declared once, by its root. A repo declaring none has its root gated only where it +tracks a root `pyproject.toml`, as `WORKFLOW.md` D1.2 states. `references/profiles.md` holds the full profile specification and the rule for splitting Python across directories. It also holds the toolchain axes a directory adapts: type checker, dependency diff --git a/spec/project-types.json b/spec/project-types.json index 2af8eb663..771990569 100644 --- a/spec/project-types.json +++ b/spec/project-types.json @@ -35,7 +35,7 @@ "detect": ["*.py"], "profiles": ["build", "lint-only"], "canonicalPlacement": "pyproject.toml", - "profileNote": "The declared profile is build or lint-only, each with a structural pyproject.toml shape (CODESTYLE.md Python 'Two profiles'). A profile belongs to a declared directory, not to the repository, so one repository may hold both. The build profile (structurally the PROJECT shape) is Python with third-party runtime dependencies, or Python that is a deliverable. Its uv form is a PEP 621 uv project: pyproject [project]+deps+[build-system], a committed uv.lock, and uv sync --all-groups --frozen + uv run in CI. Its pip form is a pyproject.toml beside a requirements*.txt with no uv.lock, installed with pip. The lint-only profile (structurally the SCRIPTS shape) is stdlib-only utility scripts, e.g. a Python tooling subtree of a csharp app. It runs with uvx, with no uv.lock and no uv project, and its pyproject carries only [tool.ruff]/[tool.mypy] config. The two differ by trait, whether the Python has third-party runtime dependencies or is a deliverable. The audit detects that trait structurally from pyproject.toml, uv.lock, and requirements*.txt (see python.profile.detect) rather than by inspecting imports. The shape [project]+deps/[build-system] + uv.lock is build, and tool-config-only with no [project]/[build-system], no uv.lock, and no requirements*.txt is lint-only. The declared profile corresponds to this shape, and each check names the minimum profile it needs (see python.profile.detect and each check's minProfile). The profile decides only how the tools are installed, never what is owed. Every Python directory owes lint, format, a type check, a tests/ suite, and coverage. A repository declares each in the hub validator's python-directories input, which the registry's pythonDirectories mirrors (python.directories.declared). A uv workspace is declared once, by its root. Tracked .py files other than the catalog's carried hub_fetch_run.py hook helper or its former name hub-fetch-run.py, not a config file, are what make a repository Python.", + "profileNote": "The declared profile is build or lint-only, each with a structural pyproject.toml shape (CODESTYLE.md Python 'Two profiles'). A profile belongs to a declared directory, not to the repository, so one repository may hold both. The build profile (structurally the PROJECT shape) is Python with third-party runtime dependencies, or Python that is a deliverable. Its uv form is a PEP 621 uv project: pyproject [project]+deps+[build-system], a committed uv.lock, and uv sync --all-groups --frozen + uv run in CI. Its pip form is a pyproject.toml beside a requirements*.txt with no uv.lock, installed with pip. The lint-only profile (structurally the SCRIPTS shape) is stdlib-only utility scripts, e.g. a Python tooling subtree of a csharp app. It runs with uvx, with no uv.lock and no uv project, and its pyproject carries only [tool.ruff]/[tool.mypy] config. The two differ by trait, whether the Python has third-party runtime dependencies or is a deliverable. The audit detects that trait structurally from pyproject.toml, uv.lock, and requirements*.txt (see python.profile.detect) rather than by inspecting imports. The shape [project]+deps/[build-system] + uv.lock is build, and tool-config-only with no [project]/[build-system], no uv.lock, and no requirements*.txt is lint-only. The declared profile corresponds to this shape, and each check names the minimum profile it needs (see python.profile.detect and each check's minProfile). The profile decides only how the tools are installed, never what is owed. Every Python directory owes lint, format, a type check, a tests/ suite, and coverage. A repository declares each in the hub validator's python-directories input, which the registry's pythonDirectories mirrors (python.directories.declared). A uv workspace is declared once, by its root. A repository declaring none has its root gated only where it tracks a root pyproject.toml, as WORKFLOW.md D1.2 states. Tracked .py files other than the catalog's carried hub_fetch_run.py hook helper or its former name hub-fetch-run.py, not a config file, are what make a repository Python.", "checks": [ { "id": "python.profile.detect", "verdict": "letter", "assert": "The declared profile corresponds to the pyproject.toml shape. A [project] table with runtime dependencies (or a [build-system]) is the build profile (the PROJECT shape). A pyproject.toml beside a requirements*.txt is the build profile too, installed with pip, whether or not it carries a [project] table. A pyproject carrying only [tool.*] config with no [project]/[build-system], no uv.lock, and no requirements*.txt is the lint-only profile (the SCRIPTS shape). A lint-only subtree must not carry a uv.lock or project/build metadata, which would misrepresent it as a shippable package, and a build one must carry one of those or a requirements*.txt. A lint-only subtree carries no requirements*.txt either. A virtual uv workspace root, whose root pyproject.toml carries [tool.uv.workspace] with no [project] or [build-system] and commits a uv.lock, is the build shape, its [project] tables living in the workspace members under subtrees.", "intentRef": "CODESTYLE.md" }, { "id": "python.ruff.config", "verdict": "intent", "assert": "A ruff configuration is present (pyproject.toml [tool.ruff]). Both profiles.", "intentRef": "CODESTYLE.md" },