mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 20:42:10 +00:00

## Summary This PR adds the command to run ruff using [pkgx](https://pkgx.sh). <!-- What's the purpose of the change? What does it do, and why? --> It's just showing that ruff is supported in one more package manager. ## Test Plan You can run `pkgx ruff` if you have pkgx installed or run `sh <(curl https://pkgx.sh) +github.com/charliermarsh/ruff sh `
1.5 KiB
1.5 KiB
Installing Ruff
Ruff is available as ruff
on PyPI:
pip install ruff
Once installed, you can run Ruff from the command line:
ruff check . # Lint all files in the current directory.
ruff format . # Format all files in the current directory.
For macOS Homebrew and Linuxbrew users, Ruff is also available as ruff
on Homebrew:
brew install ruff
For Conda users, Ruff is also available as ruff
on
conda-forge
:
conda install -c conda-forge ruff
For pkgx users, Ruff is also available as ruff
on the pkgx
registry:
pkgx install ruff
For Arch Linux users, Ruff is also available as ruff
on the official repositories:
pacman -S ruff
For Alpine users, Ruff is also available as ruff
on the testing repositories:
apk add ruff
On Docker, it is published as ghcr.io/astral-sh/ruff
, tagged for each release and latest
for
the latest release.
docker run -v .:/io --rm ghcr.io/astral-sh/ruff check .
docker run -v .:/io --rm ghcr.io/astral-sh/ruff:0.1.3 check .