sarj-standards
The Python package and command-line entry point for Sarj Standards. It detects repository structure, installs the supported toolchain, generates shared configuration, runs checks and fixes, and diagnoses drift.
Use
uv tool install sarj-standards
sarj-standards setup
sarj-standards doctor
sarj-standards check --trust-repository-code
Use sarj-standards fix for supported safe fixes and formatting. Use
sarj-standards update to update the complete Standards toolchain as one
reviewable change. Every command is repository-root aware and setup and
update are idempotent.
The generated .sarj-standards.toml is the repository's concise policy:
applicable rules are on by default, while exceptional paths or rules are
excluded explicitly. Do not edit generated tool configuration.
Use one denylist command instead of editing generated analyzer configs:
sarj-standards exclude add path 'generated/**'
sarj-standards exclude add rule 'eslint:@typescript-eslint/no-explicit-any'
sarj-standards exclude list
sarj-standards exclude remove path 'generated/**'
Paths are repository-relative globs and rules use an exact engine:rule
selector. The operations are atomic and idempotent. Repository-wide path
patterns are rejected so an exclusion cannot silently turn Standards off.
Tool ownership
Standards orchestrates these native analyzers:
- Ruff for Python lint and formatting.
- BasedPyright for Python types.
- ESLint for JavaScript and TypeScript semantics.
- Sarj analyzers for Python, SQL, IaC, and text policy.
Existing formatters, generators, tests, and custom gates remain repository owned unless setup can prove that Standards owns an equivalent integration.
CI
Run sarj-standards check --trust-repository-code as the quality gate. The
trust flag explicitly permits the repository's executable ESLint configuration;
generated hooks and CI use it automatically. Keep the package version pinned by
the repository lock file, and run sarj-standards doctor when diagnosing a
failed upgrade or unexpected drift. Machine-readable diagnostics are available
through the formats shown by sarj-standards check --help.
Maintainers
Business logic lives under sarj_standards.libs; the CLI is a presentation
adapter. Repository maintenance commands live under sarj-standards maintain.
Generated documentation must be synchronized with:
sarj-standards maintain docs sync
sarj-standards maintain docs check
The repository's contribution guide defines verification and release requirements.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sarj_standards-2.0.1-py3-none-any.whl.
File metadata
- Download URL: sarj_standards-2.0.1-py3-none-any.whl
- Upload date:
- Size: 258.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5491de1942003f14965cf3643267bb4bb37d0a3fe333d57df9860d6d04a23277
|
|
| MD5 |
6fad57d310ae3b2af45751b5977c1a15
|
|
| BLAKE2b-256 |
23c81f937bd5b4ffc5221701b6ce727db07e2799e8d60b881f04a0bff50ae8bf
|
Provenance
The following attestation bundles were made for sarj_standards-2.0.1-py3-none-any.whl:
Publisher:
release.yml on sarj-ai/standards
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sarj_standards-2.0.1-py3-none-any.whl -
Subject digest:
5491de1942003f14965cf3643267bb4bb37d0a3fe333d57df9860d6d04a23277 - Sigstore transparency entry: 2387606685
- Sigstore integration time:
-
Permalink:
sarj-ai/standards@2c8dd0abd6c440bd124026a0a89458e41426ca32 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/sarj-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c8dd0abd6c440bd124026a0a89458e41426ca32 -
Trigger Event:
push
-
Statement type: