Files
ruff/action.yml
T
2026-04-12 13:44:40 +02:00

40 lines
1.4 KiB
YAML

name: "ruff-action"
description: "A GitHub Action to run Ruff, an extremely fast Python linter and code formatter."
author: "astral-sh"
inputs:
args:
description: "Arguments passed to Ruff. Use `ruff --help` to see available options. Defaults to `check`."
required: false
default: "check"
src:
description: "Source to run Ruff. Defaults to the current directory."
required: false
default: ${{ github.workspace }}
version:
description: "The version of Ruff to use, e.g., `0.6.0`. Defaults to the first discoverable version in pyproject.toml searched upward from `src`, or `latest`."
required: false
default: ""
version-file:
description: "Path to a pyproject.toml or requirements.txt file to read the version from. If parsing fails, the action warns and falls back to `latest`."
required: false
checksum:
description: "The checksum of the ruff version to install"
required: false
manifest-file:
description: "URL to a custom manifest file in the astral-sh/versions format."
required: false
github-token:
description:
"Used for authenticated downloads of Ruff release artifacts from GitHub."
required: false
default: ${{ github.token }}
outputs:
ruff-version:
description: "The installed ruff version. Useful when using latest."
runs:
using: "node24"
main: "dist/ruff-action/index.cjs"
branding:
icon: "code"
color: "black"