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: ''" required: false default: "" src: description: "Source to run ruff. Default: '.'" required: false default: "." version: description: 'The version of ruff to use, e.g. "0.0.259"' required: false default: "" branding: color: "black" icon: "code" runs: using: composite steps: - run: | if [ "$RUNNER_OS" == "Windows" ]; then python $GITHUB_ACTION_PATH/action/main.py else python3 $GITHUB_ACTION_PATH/action/main.py fi env: RUFF_OUTPUT_FORMAT: github INPUT_MODE: ${{ inputs.mode }} INPUT_ARGS: ${{ inputs.args }} INPUT_SRC: ${{ inputs.src }} INPUT_VERSION: ${{ inputs.version }} pythonioencoding: utf-8 shell: bash