mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-19 07:30:12 +02:00
support ruff mode Argument
Users can now specify the mode of ruff to be 'check' or 'format' using the mode input.
This commit is contained in:
+8
-2
@@ -2,12 +2,17 @@ name: "Ruff GH Action"
|
||||
description: "A GH Action of Ruff, the extremely fast Python linter."
|
||||
author: "The Ruff Community"
|
||||
inputs:
|
||||
mode:
|
||||
description:
|
||||
"Specify ruff mode 'check' or 'format'"
|
||||
required: false
|
||||
default: "check"
|
||||
args:
|
||||
description:
|
||||
"Arguments passed to Ruff. Use `ruff --help` to see available options.
|
||||
Default: 'check'"
|
||||
Default: ''"
|
||||
required: false
|
||||
default: "check"
|
||||
default: ""
|
||||
src:
|
||||
description: "Source to run ruff. Default: '.'"
|
||||
required: false
|
||||
@@ -30,6 +35,7 @@ runs:
|
||||
fi
|
||||
env:
|
||||
RUFF_OUTPUT_FORMAT: github
|
||||
INPUT_MODE: ${{ inputs.mode }}
|
||||
INPUT_ARGS: ${{ inputs.args }}
|
||||
INPUT_SRC: ${{ inputs.src }}
|
||||
INPUT_VERSION: ${{ inputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user