Adapters and tools for lintrunner
Maintained. Last release 5 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install lintrunner-adapterslintrunner-adapters
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 .