Summary
The canonical pre-commit linting setup in actions-template includes the basedpyright type-checker hook. This repository is a Python project (~10 .py files) but its .pre-commit-config.yaml is missing that hook. This issue tracks adding it.
Canonical hook block
# Requires a mirror, primary repo lacks .pre-commit-hooks.yaml
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
rev: d55eabd2531b4f4a4c49c30fba627ce3a636ab79 # frozen: 1.39.9
hooks:
- id: basedpyright
Insert this block into the existing config; preserve any repo-specific customizations rather than wholesale-copying the canonical file.
Current state (basedpyright 1.39.9)
[tool.basedpyright] config in pyproject.toml: absent
- Baseline scan (default "recommended" mode): 13 errors, 55 warnings
Remediation needed
Small–moderate. Add a [tool.basedpyright] block (typeCheckingMode = "standard") and resolve/scope the remaining errors.
Acceptance criteria
Context: fleet-wide linting-standardization sweep. Canonical reference config lives in lfreleng-actions/actions-template.
Summary
The canonical pre-commit linting setup in
actions-templateincludes thebasedpyrighttype-checker hook. This repository is a Python project (~10.pyfiles) but its.pre-commit-config.yamlis missing that hook. This issue tracks adding it.Canonical hook block
Insert this block into the existing config; preserve any repo-specific customizations rather than wholesale-copying the canonical file.
Current state (basedpyright 1.39.9)
[tool.basedpyright]config inpyproject.toml: absentRemediation needed
Small–moderate. Add a
[tool.basedpyright]block (typeCheckingMode = "standard") and resolve/scope the remaining errors.Acceptance criteria
[tool.basedpyright]block present inpyproject.tomlbasedpyrighthook added, preserving existing configprek run basedpyright --all-filesreports 0 errorsContext: fleet-wide linting-standardization sweep. Canonical reference config lives in
lfreleng-actions/actions-template.