{"id":27631366,"url":"https://github.com/justinchuby/lintrunner-adapters","last_synced_at":"2025-07-02T17:05:06.191Z","repository":{"id":63004129,"uuid":"559624108","full_name":"justinchuby/lintrunner-adapters","owner":"justinchuby","description":"Adapters and tools for lintrunner","archived":false,"fork":false,"pushed_at":"2025-01-27T14:24:50.000Z","size":289,"stargazers_count":6,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-24T00:49:00.589Z","etag":null,"topics":["ci","clippy","code-scanning","flake8","formatter","lint","linter","linting","lintrunner","python","ruff","rustfmt","sarif"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/lintrunner-adapters","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinchuby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-30T17:31:37.000Z","updated_at":"2025-04-18T12:11:57.000Z","dependencies_parsed_at":"2023-11-11T22:29:43.937Z","dependency_job_id":"e9be2c04-287f-4f7b-a1a4-459223c565ca","html_url":"https://github.com/justinchuby/lintrunner-adapters","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":"0.10526315789473684","last_synced_commit":"0fd6ed62754920fc4759d82fce09e7385346cd94"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/justinchuby/lintrunner-adapters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinchuby%2Flintrunner-adapters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinchuby%2Flintrunner-adapters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinchuby%2Flintrunner-adapters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinchuby%2Flintrunner-adapters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinchuby","download_url":"https://codeload.github.com/justinchuby/lintrunner-adapters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinchuby%2Flintrunner-adapters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261604306,"owners_count":23183623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","clippy","code-scanning","flake8","formatter","lint","linter","linting","lintrunner","python","ruff","rustfmt","sarif"],"created_at":"2025-04-23T17:47:14.220Z","updated_at":"2025-07-02T17:05:06.166Z","avatar_url":"https://github.com/justinchuby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lintrunner-adapters\n\n[![CI](https://github.com/justinchuby/lintrunner-adapters/actions/workflows/ci.yml/badge.svg)](https://github.com/justinchuby/lintrunner-adapters/actions/workflows/ci.yml)\n[![PyPI version](https://badge.fury.io/py/lintrunner-adapters.svg)](https://badge.fury.io/py/lintrunner-adapters)\n\nAdapters and tools for [lintrunner](https://github.com/suo/lintrunner).\n\n`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. Contribution is welcome!\n\nTo see the list of supported linters and formatters, run `lintrunner_adapters run`.\n\n## Install\n\n```sh\npip install lintrunner-adapters\n```\n\n## Usage\n\n```text\nUsage: python -m lintrunner_adapters [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  run       Run an adapter.\n  to-sarif  Convert the output of lintrunner json (INPUT) to SARIF (OUTPUT).\n```\n\nUse `lintrunner_adapters run` to see a list of adapters available.\n\n## GitHub action\n\nhttps://github.com/justinchuby/lintrunner-action\n\n## How to\n\n### Use `lintrunner_adapters` with `lintrunner` in your project\n\nRefer to the [`.lintrunner.toml`](https://github.com/justinchuby/lintrunner-adapters/blob/main/.lintrunner.toml) config file in this repo and example configs for each adapter under [`examples/adapters`](https://github.com/justinchuby/lintrunner-adapters/tree/main/examples/adapters).\n\n### Write lint config in `.lintrunner.toml`\n\nSee https://docs.rs/lintrunner/latest/lintrunner/lint_config/struct.LintConfig.html.\n\n### Create a new adapter\n\nUse [`lintrunner_adapters/adapters/pylint_linter.py`](https://github.com/justinchuby/lintrunner-adapters/blob/main/lintrunner_adapters/adapters/pylint_linter.py) as an example.\n\n### Run lintrunner in CI and get Github code scanning messages in your PRs\n\n#### Option 1\n\nUse a GitHub Action: [lintrunner-action](https://github.com/justinchuby/lintrunner-action)\n\n#### Option 2\n\nRun it directly in the workflow. See [`.github/workflows/ci.yml`](https://github.com/justinchuby/lintrunner-adapters/blob/main/.github/workflows/ci.yml).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinchuby%2Flintrunner-adapters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinchuby%2Flintrunner-adapters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinchuby%2Flintrunner-adapters/lists"}