Skip to content
rlsbl.checks.project
On this page

Project checks (tag: project) validating version, name, license, and description consistency, config schema, and scaffold conflicts.

#rlsbl.checks.project

#rlsbl.checks.project

Project checks (tag: project) validating version, name, license, and description consistency, config schema, and scaffold conflicts.

Checks: lock, version-consistency, name-consistency, license-consistency, description-consistency, private-hook-stale, config-schema, license-file, publish-mode-workflow, npm-private-mismatch, target-version-readable, dunder-version-missing, selfdoc-version-drift, scaffold-conflicts, stash-free, cross-repo-path-sources, stricttest-floor, dep-floors, dep-locks, go-module-identity, strictspec-generated-floor.

#_matrix_drift_details

python
def _matrix_drift_details(committed, fresh, limit=10)

Name what changed between the committed support matrix and a fresh one.

A byte comparison decides staleness; this only makes the failure actionable. Unparseable committed text is itself the finding.

#_launcher_target_subdir_from_config

python
def _launcher_target_subdir_from_config(config, launcher_entry)

Resolve a launcher pipeline's linked target directory from config.

#_launcher_manifest_missing_fields

python
def _launcher_manifest_missing_fields(root, subdir, launcher_entry)

Return the shim-critical manifest fields missing from a launcher target.

Only reports when the manifest exists (an absent manifest is a separate scaffold-time hard error). For npm postinstall mode: bin, scripts.postinstall, files. For npm first-run mode: bin, files (no postinstall -- install does zero network I/O). For pypi: project.scripts.

#find_conflicted_scaffold_files

python
def find_conflicted_scaffold_files(project_root)

Return (relpath, first_conflict_line) tuples for scaffold files with unresolved git merge conflict markers, sorted by path.

Scans three file sets (skipping files that don't exist):

  • every file listed in .rlsbl/managed-files.json (the

scaffold-managed registry; missing or malformed registry is skipped)

  • all files under .github/workflows/
  • all files under .rlsbl/ (recursively)

A file is conflicted when it contains a line starting with '<<<<<<< ' AND a line starting with '>>>>>>> '. Requiring both avoids false positives on bare '=======' lines (e.g. setext heading underlines). first_conflict_line is the 1-based line number of the first '<<<<<<< ' marker in the file.

Shared by the scaffold-conflicts check and the pre-mutation guard in rlsbl release run.

#find_cross_repo_path_sources

python
def find_cross_repo_path_sources(project_root, boundary_root=None)

Return (package, declared_path, resolved_path) tuples for [tool.uv.sources] entries in project_root/pyproject.toml whose path resolves outside boundary_root (defaults to project_root).

Relative paths are resolved against the pyproject.toml's directory, matching uv's resolution rule. workspace = true sources and in-repo path sources are legal and never reported. Returns an empty list when pyproject.toml is missing, unparseable, or has no sources table.

A non-string path value (malformed TOML) is reported as an offender whose third element is an "invalid path value" message naming the source and file, so consumers fail the check instead of crashing.

Shared by the cross-repo-path-sources check and the pre-mutation guard in rlsbl release run.

#_get_releasable_version_for_project

python
def _get_releasable_version_for_project(ctx)

Return the releasable version for the project in ctx, or None.

Returns a version string when ALL of the following hold:

  • The project is inside a monorepo (ctx.workspace_root is not None)
  • The current project has releasable = "<name>" (belongs to a releasable)
  • The releasable's version file exists and is non-empty

Returns None otherwise (non-releasable project, missing version file, or not in a monorepo). Callers should fall through to the standard per-target consistency check when None is returned.

#_virtual_root_skip_reason

python
def _virtual_root_skip_reason(ctx)

Return a skip reason string when ctx.project_root is a virtual uv workspace root (has [tool.uv.workspace] but no [project] table), else None.

#_go_module_dirs

python
def _go_module_dirs(ctx, check_name)

Every directory a Go target occupies, workspace-wide when there is one.

The target registry answers which directories those are, so a Go module reached through a targets entry with a path is found the same way the release finds it. WHICH targets those are is read from CHECK_TARGETS -- the one place check_name's scope is written down -- rather than tested by name here.

#_repo_root

python
def _repo_root(ctx)

The git worktree root that module paths are relative to.

#_origin_remote_url

python
def _origin_remote_url(cwd)

The origin remote URL, or None when the repository has no origin.

#register_project_checks

python
def register_project_checks(app)

Register project-tag checks on app.

More tools from this site

  • claudestream Drive Claude Code from Python: run it as a subprocess and read its output as typed events, with async and sync sessions, sandbox policies, and tools you define in Python
  • claudewheel A TUI Claude Code Launcher that lets you have more than one profile, manage sessions lifecycle, pick the exact CC version, model to use (even older unlisted ones), pick which GitHub account to use, etc.
  • dirstat Fast, single-binary directory statistics CLI: every file under a tree grouped by format, with counts, sizes, and lines of code, as a colored terminal table or as JSON
  • fastware A batteries-included ASGI framework: msgspec JSON, a managed Granian server, dependency injection, SSE, WebSockets, auth, and a test client
  • go-toml-edit Zero-dep TOML editing library for Go with comment preservation
  • howmuchleft The fastest Claude Code statusline: context window, 5-hour, and weekly limit usage as three customizable gradient bars, rendering in about 6 ms
  • orxtra
  • pgdesign
  • predraw Declarative rendering pipeline: describe a scene in JSON and get SVG, PNG and WebP out, with light and dark style tokens, reusable components and text converted to path outlines
  • reposummary Turn a git repository's history into a Markdown journal: pick a time window or revision range and get a readable digest of what changed, optionally narrated by an LLM
  • safegit git wrapper CLI that gives each commit its own temporary index and retries ref updates on conflict, so concurrent agents share one repository
  • saferm Command-line replacement for rm that archives every deletion with a mandatory reason and the context it ran in, so deleted files can be listed, inspected and restored
  • selfdoc Static Site Generator that builds a project's documentation site directly from its source code, so the docs can never drift from the code they describe, with SEO/AEO, first-class blog, search, and cross-project linking built in
  • strictcli
  • stricttest An always-on test-isolation floor: a pytest plugin and a Go env-hygiene module that make a test suite structurally unable to reach real credentials, the real HOME, the network, or the development repository.
  • wesktop A Python framework that turns an ASGI web app into a desktop application, serving it from a local Granian server and displaying it in a native OS window via pywebview
Search