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 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-0.1.1.tar.gz (31.8 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-0.1.1-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sru_lint-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e6e2761cbe5eb13a3974bcf5d2d2ab9d02929f42989a55173bf5385458725f9
MD5 9792b372cad40bae032834d19da91cbf
BLAKE2b-256 43a24ed6e5a39d52ff64884b4739195421b44efd8401b687ccfaa2b288f7486b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sru_lint-0.1.1.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-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sru_lint-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb97900f1ae97ad6dad36d306b684f2cc6b02b6024ebc3e95c7fdb64c89e4100
MD5 7a1fa41adcd5a921bca316a8315667e0
BLAKE2b-256 2cf150081483b3f771a35217af6a0dd87def8e3711d56b35354a4845d96009f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sru_lint-0.1.1-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