Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .agents/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bd10464910ef527d
6f382744da290b2b
3 changes: 2 additions & 1 deletion .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/project-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
Loading