Skip to main content

Adapters and tools for lintrunner

Project description

lintrunner-adapters

CI PyPI - Version PyPI - Downloads

Adapters and tools for lintrunner.

lintrunner-adapters currently supports popular Python / Rust / C++ linters and formatters like flake8, pylint, mypy, black, ruff(with auto-fix support), rustfmt, clippy, clang-format and many more - and the list is growing. Contributions welcome!

To see the list of supported linters and formatters, run lintrunner_adapters run.

Install

pip install lintrunner-adapters

Usage

Usage: python -m lintrunner_adapters [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  run       Run an adapter.
  to-sarif  Convert the output of lintrunner json (INPUT) to SARIF (OUTPUT).

Use lintrunner_adapters run to see a list of adapters available.

GitHub action

https://github.com/justinchuby/lintrunner-action

How to

Use lintrunner_adapters with lintrunner in your project

Refer to the .lintrunner.toml config file in this repo and example configs for each adapter under examples/adapters.

Write lint config in .lintrunner.toml

See https://docs.rs/lintrunner/latest/lintrunner/lint_config/struct.LintConfig.html.

Create a new adapter

Use lintrunner_adapters/adapters/pylint_linter.py as an example.

Run lintrunner in CI and get Github code scanning messages in your PRs

Option 1

Use a GitHub Action: lintrunner-action

Option 2

Run it directly in the workflow. See .github/workflows/ci.yml.

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

lintrunner_adapters-0.13.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

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

lintrunner_adapters-0.13.0-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

File details

Details for the file lintrunner_adapters-0.13.0.tar.gz.

File metadata

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

File hashes

Hashes for lintrunner_adapters-0.13.0.tar.gz
Algorithm Hash digest
SHA256 cd5a240398a778cab6f69ebf79e4fd41beb8a47559e1fae5986c75932e5f3b12
MD5 416165e4797c298040d7b270e04d5bda
BLAKE2b-256 f7f4dd42f655b2df7e06ab84a4af392e717f43d20c48984ef4928f13205862a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintrunner_adapters-0.13.0.tar.gz:

Publisher: ci.yml on justinchuby/lintrunner-adapters

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

File details

Details for the file lintrunner_adapters-0.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lintrunner_adapters-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ecfbc0bb0628b2037660c0933275cf487e782c76b6bed2bcd48a61a42cc21a5
MD5 d01d6019291a825745163bfb10960f72
BLAKE2b-256 6b0244849ee66c98b1d0491e85d9d01d61c4c8b540ba464d47e77cadbaaf149b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintrunner_adapters-0.13.0-py3-none-any.whl:

Publisher: ci.yml on justinchuby/lintrunner-adapters

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