All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 description: "The uncompromising Python code formatter."
3 author: "Łukasz Langa and contributors to Black"
7 "Options passed to Black. Use `black --help` to see available options. Default:
10 default: "--check --diff"
12 description: "Source to run Black. Default: '.'"
17 "Set this option to true to include Jupyter Notebook files. Default: false"
21 description: "[DEPRECATED] Black input arguments."
25 "Input `with.black_args` is deprecated. Use `with.options` and `with.src` instead."
27 description: 'Python Version specifier (PEP440) - e.g. "21.5b1"'
38 if [ "$RUNNER_OS" == "Windows" ]; then
44 out=$(${runner} $GITHUB_ACTION_PATH/action/main.py)
47 # Display the raw output in the step
50 # Display the Markdown output in the job summary
51 echo "\`\`\`python" >> $GITHUB_STEP_SUMMARY
52 echo "${out}" >> $GITHUB_STEP_SUMMARY
53 echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
55 # Exit with the exit-code returned by Black
58 # TODO: Remove once https://github.com/actions/runner/issues/665 is fixed.
59 INPUT_OPTIONS: ${{ inputs.options }}
60 INPUT_SRC: ${{ inputs.src }}
61 INPUT_JUPYTER: ${{ inputs.jupyter }}
62 INPUT_BLACK_ARGS: ${{ inputs.black_args }}
63 INPUT_VERSION: ${{ inputs.version }}
64 pythonioencoding: utf-8