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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f89014d7e30bffb9f71a5f1a63981a8c0474c756458b9c7ae5b19f7ffaa9e84 |
|
MD5 | f49cbb124bec5a5ef548ac2d6376804f |
|
BLAKE2b-256 | 0bcd1efade9abe9fbcee4604a9199b7197233ff7005155a23dc2abea8582a6c7 |
Hashes for lintrunner_adapters-0.6.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f411c568557ee401d6afe13f2b55fd2c559fd431718c22dd5383f96d954029 |
|
MD5 | d35e638052ac3f14d6eb091c23027f99 |
|
BLAKE2b-256 | abc83882cc761e52772b386cb4595e6e3eb83acd0c16c7f8c2bfa0c53af943ce |