Adapters and tools for lintrunner
Project description
lintrunner-adapters
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lintrunner_adapters-0.6.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74de9e2a0a5d6f8336f6b7d8cbd527c97fdaf965cf5cfefce7cf1386a8358a67 |
|
MD5 | 9f084e1033c1bcfb5fd90fc73410fb37 |
|
BLAKE2b-256 | 014f2e19cf4b9c3f29777c9808d6a037edfe63eb56f3a04fabf48f90caba6ea0 |
Hashes for lintrunner_adapters-0.6.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7643c8e1540f688449738302f43e0e82c46dbb1d24532ae5d316c06cea4b4c34 |
|
MD5 | bdc8676fb22bf6b36f6e405a18ba9ba2 |
|
BLAKE2b-256 | ba825db4672a3c7541125316c6e928c17de39b4166aacaac013797f28b52ca58 |