Skip to main content

Adapters and tools for lintrunner

Project description

lintrunner-adapters

CI PyPI version

Adapters and tools for lintrunner.

lintrunner-adapters currently supports popular Python and Rust linters and formatters like flake8, pylint, mypy, black, ruff(with auto-fix support), rustfmt, clippy and many more - and the list is growing. Contribution is 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.

How to

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.

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.

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

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.8.0.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

lintrunner_adapters-0.8.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lintrunner_adapters-0.8.0.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for lintrunner_adapters-0.8.0.tar.gz
Algorithm Hash digest
SHA256 7c2f7ceac8924084e7a23b8716a269f440fd2fb33c9024874677ce686eee7a69
MD5 6cf0b9275800de48e397fb90a3d5778c
BLAKE2b-256 0902ba01f7574fbdbd2bb120385d5f01335971a78c0392c69c7b176b0d76371a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lintrunner_adapters-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69fed54b3d39c71c88faeac56a3476e2453ab070965db60bbd403a978c30fd4d
MD5 c7068451ae421ea44af44ed112766f26
BLAKE2b-256 a0aff20704fee7a0b1c65e01d519ee3c5b6518ba401a69016b919a4d5d36491e

See more details on using hashes here.

Supported by

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