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.
pip install lintrunner-adaptersUsage: 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.
https://github.com/justinchuby/lintrunner-action
Refer to the .lintrunner.toml config file in this repo and example configs for each adapter under examples/adapters.
See https://docs.rs/lintrunner/latest/lintrunner/lint_config/struct.LintConfig.html.
Use lintrunner_adapters/adapters/pylint_linter.py as an example.
Use a GitHub Action: lintrunner-action
Run it directly in the workflow. See .github/workflows/ci.yml.