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
29 changes: 17 additions & 12 deletions .agents/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ profiles, the toolchain, layout, and the language-level conventions.
## Two profiles

Read the repo's `OPERATIONS.md` local-verification commands before substituting a generic command.
Then read the `pyproject.toml` shape and pick the profile before running Python tooling or tests:
Then read each Python directory's `pyproject.toml` shape and pick its profile before running Python
tooling or tests:

- **build** (Project): third-party runtime dependencies, or the repo's deliverable. Either a uv
- **build** (Project): third-party runtime dependencies, or a deliverable. Either a uv
project (`[project]` + `[build-system]` + committed `uv.lock`, run with `uv run`) or a
`pyproject.toml` beside a `requirements*.txt` and no `uv.lock`, installed with pip. Uses pytest,
and pyright strict or mypy with its strict flags as the CI type checker. A repo enforcing
Expand All @@ -41,12 +42,15 @@ Then read the `pyproject.toml` shape and pick the profile before running Python
for tests, and mypy as the CI gate. Do not run pytest or diagnose its absence as an environment
defect. Use the repository's exact coverage command and unittest scope from `OPERATIONS.md`.

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, and a repo declares each such
directory in the hub validator's `python-directories` input.
A profile belongs to a declared directory, not to the repository. Each deliverable takes a
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.

For the full profile specification and per-repo adaptation axes (type checker, dependency
declaration, versioning), see `references/profiles.md`.
`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
declaration, and versioning.

## Toolchain

Expand Down Expand Up @@ -83,8 +87,8 @@ editor (the `ms-python.mypy-type-checker` extension) so the two stay consistent,
command joins the clean-compile. The hub validator runs at most one checker in each Python
directory, mypy where both are configured. A repo enforcing pyright beside mypy runs pyright from
its own `.github/actions/validate/action.yml` hook. That hook starts from a bare checkout, so it
sets up its own Python environment. mypy may also be a build repo's only CI checker, run with its
strict flags, and Pylance's pyright diagnostics are then advisory, since CI never runs them. A
sets up its own Python environment. mypy may also be a build directory's only CI checker, run with
its strict flags. Pylance's pyright diagnostics are then advisory, since CI never runs them. A
pyright-only repo is the lightest and is inherently consistent, since the editor and CI run one
engine.

Expand Down Expand Up @@ -157,9 +161,10 @@ adaptations. Every command-executing task in it is `type: process`, and every ag
`dependsOn`-only. Neither chains with `&&`, so the mirror runs the same on any task shell.

CI runs these same commands as the authoritative backstop in every directory the hub validator's
`python-directories` input declares. The undeclared root, the default for a repo declaring none, is
gated more loosely. CI reads its type-checker configuration only from the `[tool.mypy]` or
`[tool.pyright]` section of its `pyproject.toml`, and skips the type check where neither is there,
`python-directories` input declares. A repo declaring none has its root gated only where it tracks
a root `pyproject.toml`, per `WORKFLOW.md` D1.2. That undeclared root is gated more loosely. CI
reads its type-checker configuration only from the `[tool.mypy]` or `[tool.pyright]` section of its
`pyproject.toml`. It skips the type check where neither is there,
whatever the form. In its pip form CI installs nothing for that check and runs a bare
`uvx <checker>@latest`, so the local check against the environment is the stricter one. And CI runs
its tests only where a pytest suite in `tests/` sits beside a `uv.lock` or `requirements*.txt`.
Expand Down
10 changes: 5 additions & 5 deletions .agents/skills/python-codestyle/references/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Adapt before propagating

The rules in `SKILL.md` describe the default Python profile: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A derived repo
often differs, and when it does, adapt these fields to match the repo's actual toolchain rather
than copying verbatim (a verbatim copy that misdescribes the repo is inaccurate and gets rejected
in review). The axes that commonly vary per repo:
The rules in `SKILL.md` describe the default Python toolchain: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A directory in a
derived repo often differs, so adapt these fields to its actual toolchain rather than copying them
verbatim. A verbatim copy that misdescribes the directory is inaccurate and gets rejected in
review. The axes that commonly vary:

- **Type checker in CI**: pyright strict, mypy with its strict flags (run in CI and the editor, with
pyright kept editor-only through Pylance), or both. A repo running both runs pyright itself,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f19bb87f5709ca3c
bd10464910ef527d
29 changes: 17 additions & 12 deletions .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ profiles, the toolchain, layout, and the language-level conventions.
## Two profiles

Read the repo's `OPERATIONS.md` local-verification commands before substituting a generic command.
Then read the `pyproject.toml` shape and pick the profile before running Python tooling or tests:
Then read each Python directory's `pyproject.toml` shape and pick its profile before running Python
tooling or tests:

- **build** (Project): third-party runtime dependencies, or the repo's deliverable. Either a uv
- **build** (Project): third-party runtime dependencies, or a deliverable. Either a uv
project (`[project]` + `[build-system]` + committed `uv.lock`, run with `uv run`) or a
`pyproject.toml` beside a `requirements*.txt` and no `uv.lock`, installed with pip. Uses pytest,
and pyright strict or mypy with its strict flags as the CI type checker. A repo enforcing
Expand All @@ -41,12 +42,15 @@ Then read the `pyproject.toml` shape and pick the profile before running Python
for tests, and mypy as the CI gate. Do not run pytest or diagnose its absence as an environment
defect. Use the repository's exact coverage command and unittest scope from `OPERATIONS.md`.

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, and a repo declares each such
directory in the hub validator's `python-directories` input.
A profile belongs to a declared directory, not to the repository. Each deliverable takes a
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.

For the full profile specification and per-repo adaptation axes (type checker, dependency
declaration, versioning), see `references/profiles.md`.
`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
declaration, and versioning.

## Toolchain

Expand Down Expand Up @@ -83,8 +87,8 @@ editor (the `ms-python.mypy-type-checker` extension) so the two stay consistent,
command joins the clean-compile. The hub validator runs at most one checker in each Python
directory, mypy where both are configured. A repo enforcing pyright beside mypy runs pyright from
its own `.github/actions/validate/action.yml` hook. That hook starts from a bare checkout, so it
sets up its own Python environment. mypy may also be a build repo's only CI checker, run with its
strict flags, and Pylance's pyright diagnostics are then advisory, since CI never runs them. A
sets up its own Python environment. mypy may also be a build directory's only CI checker, run with
its strict flags. Pylance's pyright diagnostics are then advisory, since CI never runs them. A
pyright-only repo is the lightest and is inherently consistent, since the editor and CI run one
engine.

Expand Down Expand Up @@ -157,9 +161,10 @@ adaptations. Every command-executing task in it is `type: process`, and every ag
`dependsOn`-only. Neither chains with `&&`, so the mirror runs the same on any task shell.

CI runs these same commands as the authoritative backstop in every directory the hub validator's
`python-directories` input declares. The undeclared root, the default for a repo declaring none, is
gated more loosely. CI reads its type-checker configuration only from the `[tool.mypy]` or
`[tool.pyright]` section of its `pyproject.toml`, and skips the type check where neither is there,
`python-directories` input declares. A repo declaring none has its root gated only where it tracks
a root `pyproject.toml`, per `WORKFLOW.md` D1.2. That undeclared root is gated more loosely. CI
reads its type-checker configuration only from the `[tool.mypy]` or `[tool.pyright]` section of its
`pyproject.toml`. It skips the type check where neither is there,
whatever the form. In its pip form CI installs nothing for that check and runs a bare
`uvx <checker>@latest`, so the local check against the environment is the stricter one. And CI runs
its tests only where a pytest suite in `tests/` sits beside a `uv.lock` or `requirements*.txt`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Adapt before propagating

The rules in `SKILL.md` describe the default Python profile: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A derived repo
often differs, and when it does, adapt these fields to match the repo's actual toolchain rather
than copying verbatim (a verbatim copy that misdescribes the repo is inaccurate and gets rejected
in review). The axes that commonly vary per repo:
The rules in `SKILL.md` describe the default Python toolchain: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A directory in a
derived repo often differs, so adapt these fields to its actual toolchain rather than copying them
verbatim. A verbatim copy that misdescribes the directory is inaccurate and gets rejected in
review. The axes that commonly vary:

- **Type checker in CI**: pyright strict, mypy with its strict flags (run in CI and the editor, with
pyright kept editor-only through Pylance), or both. A repo running both runs pyright itself,
Expand Down
29 changes: 17 additions & 12 deletions .github/skills/python-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ profiles, the toolchain, layout, and the language-level conventions.
## Two profiles

Read the repo's `OPERATIONS.md` local-verification commands before substituting a generic command.
Then read the `pyproject.toml` shape and pick the profile before running Python tooling or tests:
Then read each Python directory's `pyproject.toml` shape and pick its profile before running Python
tooling or tests:

- **build** (Project): third-party runtime dependencies, or the repo's deliverable. Either a uv
- **build** (Project): third-party runtime dependencies, or a deliverable. Either a uv
project (`[project]` + `[build-system]` + committed `uv.lock`, run with `uv run`) or a
`pyproject.toml` beside a `requirements*.txt` and no `uv.lock`, installed with pip. Uses pytest,
and pyright strict or mypy with its strict flags as the CI type checker. A repo enforcing
Expand All @@ -41,12 +42,15 @@ Then read the `pyproject.toml` shape and pick the profile before running Python
for tests, and mypy as the CI gate. Do not run pytest or diagnose its absence as an environment
defect. Use the repository's exact coverage command and unittest scope from `OPERATIONS.md`.

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, and a repo declares each such
directory in the hub validator's `python-directories` input.
A profile belongs to a declared directory, not to the repository. Each deliverable takes a
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.

For the full profile specification and per-repo adaptation axes (type checker, dependency
declaration, versioning), see `references/profiles.md`.
`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
declaration, and versioning.

## Toolchain

Expand Down Expand Up @@ -83,8 +87,8 @@ editor (the `ms-python.mypy-type-checker` extension) so the two stay consistent,
command joins the clean-compile. The hub validator runs at most one checker in each Python
directory, mypy where both are configured. A repo enforcing pyright beside mypy runs pyright from
its own `.github/actions/validate/action.yml` hook. That hook starts from a bare checkout, so it
sets up its own Python environment. mypy may also be a build repo's only CI checker, run with its
strict flags, and Pylance's pyright diagnostics are then advisory, since CI never runs them. A
sets up its own Python environment. mypy may also be a build directory's only CI checker, run with
its strict flags. Pylance's pyright diagnostics are then advisory, since CI never runs them. A
pyright-only repo is the lightest and is inherently consistent, since the editor and CI run one
engine.

Expand Down Expand Up @@ -157,9 +161,10 @@ adaptations. Every command-executing task in it is `type: process`, and every ag
`dependsOn`-only. Neither chains with `&&`, so the mirror runs the same on any task shell.

CI runs these same commands as the authoritative backstop in every directory the hub validator's
`python-directories` input declares. The undeclared root, the default for a repo declaring none, is
gated more loosely. CI reads its type-checker configuration only from the `[tool.mypy]` or
`[tool.pyright]` section of its `pyproject.toml`, and skips the type check where neither is there,
`python-directories` input declares. A repo declaring none has its root gated only where it tracks
a root `pyproject.toml`, per `WORKFLOW.md` D1.2. That undeclared root is gated more loosely. CI
reads its type-checker configuration only from the `[tool.mypy]` or `[tool.pyright]` section of its
`pyproject.toml`. It skips the type check where neither is there,
whatever the form. In its pip form CI installs nothing for that check and runs a bare
`uvx <checker>@latest`, so the local check against the environment is the stricter one. And CI runs
its tests only where a pytest suite in `tests/` sits beside a `uv.lock` or `requirements*.txt`.
Expand Down
10 changes: 5 additions & 5 deletions .github/skills/python-codestyle/references/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Adapt before propagating

The rules in `SKILL.md` describe the default Python profile: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A derived repo
often differs, and when it does, adapt these fields to match the repo's actual toolchain rather
than copying verbatim (a verbatim copy that misdescribes the repo is inaccurate and gets rejected
in review). The axes that commonly vary per repo:
The rules in `SKILL.md` describe the default Python toolchain: a package that publishes to PyPI,
type-checked by pyright in strict mode, dependencies in `[dependency-groups]`. A directory in a
derived repo often differs, so adapt these fields to its actual toolchain rather than copying them
verbatim. A verbatim copy that misdescribes the directory is inaccurate and gets rejected in
review. The axes that commonly vary:

- **Type checker in CI**: pyright strict, mypy with its strict flags (run in CI and the editor, with
pyright kept editor-only through Pylance), or both. A repo running both runs pyright itself,
Expand Down
Loading
Loading