Skip to main content

A linter for Ubuntu SRU (Stable Release Update) packages

Project description

sru-lint

Static analysis tool for Ubuntu SRU (Stable Release Update) patches — built to run in CI and generate human-friendly reports.

Documentation

For complete documentation, installation instructions, usage examples, and plugin development guides, visit:

https://canonical-sru-lint.readthedocs-hosted.com/en/latest/

Quick Start

# Install from snap (recommended)
snap install --edge sru-lint

# Or install with Poetry (for development)
git clone https://github.com/dargad/sru-lint.git
cd sru-lint
poetry install

# Check from a patches-unapplied git repo (the current directory)
sru-lint check .

# Check a patch file or URL
sru-lint check path/to/patch.debdiff  # if installed via snap
poetry run sru-lint check path/to/patch.debdiff  # if using Poetry
sru-lint check https://example.com/patch.diff

# Check from stdin
cat patch.debdiff | sru-lint check -  # if installed via snap
cat patch.debdiff | poetry run sru-lint check -  # if using Poetry

# List available plugins
sru-lint plugins  # if installed via snap
poetry run sru-lint plugins  # if using Poetry

What it checks

  • Changelog entries (valid distributions, LP bugs, version ordering)
  • DEP-3 patch format compliance
  • Launchpad integration (bug targeting, SRU templates, publication history)
  • Upload queue conflicts
  • And more via the plugin system...

License

MIT License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sru_lint-1.0.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sru_lint-1.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file sru_lint-1.0.tar.gz.

File metadata

  • Download URL: sru_lint-1.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sru_lint-1.0.tar.gz
Algorithm Hash digest
SHA256 447377f78e9ae210c820d46fb24a5f5775013ac31f6054e1b883376558857398
MD5 1125472b858feaa4e6f6cc21333fe03a
BLAKE2b-256 58de59f9d61817c637ef6cddd5d88b2fa454c3bcca97ad0db075431930e3e745

See more details on using hashes here.

Provenance

The following attestation bundles were made for sru_lint-1.0.tar.gz:

Publisher: pypi-publish.yaml on canonical/sru-lint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sru_lint-1.0-py3-none-any.whl.

File metadata

  • Download URL: sru_lint-1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sru_lint-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82d45f96f5d3ebd29e342b5b0a569bb81fb48c20745566fd2f11f83bc075ed89
MD5 118208f63589a605488bb81150ea84b1
BLAKE2b-256 365d97bbc15ddaa1f8cbf79fd7fc968ade9a72a5cb6f2e89982d81b5521667f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sru_lint-1.0-py3-none-any.whl:

Publisher: pypi-publish.yaml on canonical/sru-lint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page