npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codacy/tools-ruff-0

v0.2.0

Published

Ruff adapter — CLI-mode Python linter

Readme

@codacy/tools-ruff-0

Table of Contents


Overview

Python linter using the Ruff binary. Ruff is an extremely fast Python linter written in Rust that implements rules from Flake8, isort, pyupgrade, and many other tools. Uses the CLI execution strategy.

| Property | Value | |----------|-------| | Tool ID | Ruff | | Codacy UUID | aac6ad5e-093d-47c4-97ff-87f91d6128a2 | | Strategy | CLI | | Languages | Python | | Binary | ruff | | File patterns | **/*.py, **/*.pyi, **/*.ipynb | | Pattern count | ~773 |

Updating patterns

# Re-fetch pattern metadata from the Codacy API
pnpm prefetch

# Commit the result
git add src/patterns.json

Pattern IDs follow the format Ruff_F401_unused-import, Ruff_E501_line-too-long, etc.

Updating the Ruff version

  1. Update preferredVersion in src/adapter.ts
  2. Run pnpm prefetch — Ruff adds new rules frequently
  3. Run pnpm test to verify compatibility
  4. If the major version changes, create a new adapter package (ruff-1/)

Development

pnpm build    # Build with tsup
pnpm test     # Run tests (requires ruff in PATH or auto-install)

Notes for maintainers

  • Ruff is a standalone Rust binary, downloaded from GitHub releases as a .tar.gz archive.
  • Installation uses downloadAndExtract() with stripComponents: 1 because the archive wraps the binary in a directory (e.g. ruff-aarch64-apple-darwin/ruff).
  • JSON output via ruff check --output-format json.
  • --exit-zero ensures exit code 0 even when findings exist.
  • --no-cache disables Ruff's file cache for reproducible results.
  • When patterns are specified, a ruff.toml config with select = [...] is generated.
  • Config file search order: .ruff.toml, ruff.toml, pyproject.toml.