baseline-py
Structural linter and config scaffolder for Python: atomic files, placement,
size caps, no inline SQL. Brings the same discipline as
@busirocket/eslint-config and cargo-baseline to Python projects.
Install
uv add --dev busirocket-baseline-py
Usage
baseline-py init [--check|--apply|--force] # scaffold ruff, mypy, deptry,
# pytest, coverage and CI config
baseline-py check [PATH...] # run the structural rules
baseline-py gate # run the whole quality chain
baseline-py baseline create|update|check # track migration debt
init never overwrites: it merges into existing configuration, or reports a
conflict. check never writes. gate fails when a required tool is absent
rather than skipping it.
Rules
| Code | Rule | Enforces |
|---|---|---|
BPY000 |
parse-error |
A file that fails to parse is a finding, never a silent skip. |
BPY001 |
one-primary-unit |
Exactly one primary declaration per ordinary module. |
BPY002 |
file-matches-unit |
File name is the snake_case of its primary declaration. |
BPY003 |
no-grab-bag-names |
No utils, helpers, misc or common in any path segment. |
BPY004 |
max-file-lines |
Code-line cap per file; tests get their own, looser cap. |
BPY005 |
barrel-only-init |
__init__.py holds imports, __all__ and nothing else. |
BPY006 |
no-inline-sql |
SQL lives in resource files, not in string literals. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | All blocking checks passed. |
| 1 | Policy findings. |
| 2 | Invalid usage or invalid configuration. |
| 3 | Infrastructure failure: a required tool is missing or unusable. |
License
MIT
Metadata
Release files for busirocket-baseline-py 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| busirocket_baseline_py-0.1.12.tar.gz | 126.7 kB | With provenance | Details for busirocket_baseline_py-0.1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| busirocket_baseline_py-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for busirocket_baseline_py-0.1.12-py3-none-any.whl |
Total release size: 220.7 kB
Release files / busirocket_baseline_py-0.1.12.tar.gz
| Download URL | busirocket_baseline_py-0.1.12.tar.gz |
|---|---|
| Size | 126.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f548a0ccbb2a84449cfde29273101099c2a246dcc1f6f372e4d1dbe14b319fdd
|
|
BLAKE2b-256 checksum How to use checksums |
e2df8d8ba4f1b9cf5e704032332c1f9fc520fe53307a34dc62fb3080121b9814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / busirocket_baseline_py-0.1.12-py3-none-any.whl
| Download URL | busirocket_baseline_py-0.1.12-py3-none-any.whl |
|---|---|
| Size | 94.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2571c982874a40f530009a7da4800a90f46187a43adf674cf8e9f4a4c1cbbdaa
|
|
BLAKE2b-256 checksum How to use checksums |
8f67eabefc323cae3b363704a3c3076c5df125c141502b4d2d34489b02dfe382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logSecurity for busirocket-baseline-py 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for busirocket_baseline_py-0.1.12.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.