Skip to content

Installation

There are multiple ways to install linthis depending on your environment.

brew tap zhlinh/linthis
brew install linthis

To upgrade to the latest version:

brew update
brew upgrade linthis
# Using pip
pip install linthis

# Using uv (recommended)
# pip install uv
uv pip install linthis
cargo install linthis

Method 4: Build from Source

git clone https://github.com/zhlinh/linthis.git
cd linthis
cargo build --release

The binary will be available at target/release/linthis.

Verify Installation

After installation, verify that linthis is working:

linthis --version

System Requirements

  • Operating Systems: macOS, Linux, Windows
  • Architecture: x86_64, arm64

Language-Specific Tools

linthis wraps existing language-specific tools. For each language you want to lint/format, you'll need the underlying tools installed:

Language Required Tools
Rust rustfmt, clippy
Python ruff or black, flake8, pylint
JavaScript/TypeScript eslint, prettier
Go gofmt, golangci-lint
Java checkstyle, clang-format
C++ clang-format, cpplint

See Languages for detailed setup instructions for each language.

Next Steps