/pep8-action

GitHub Action running pycodestyle to ensure PEP8 compliance.

Primary LanguageShellMIT LicenseMIT

PEP8 Action

This GitHub Action runs pycodestyle to ensure the code is well formatted.

Inputs

arguments

Give arguments to the pycodestyle command.

Outputs

exit-code

  • 0 = success
  • 1 = fail

output

Output of the pycodestyle command. Shows formatting errors.

Example

- uses: actions/checkout@master
  with:
  ref: ${{ github.event.pull_request.head.sha }}
- name: 'Run PEP8'
  uses: quentinguidee/pep8-action@v1
  with:
    arguments: '--max-line-length=120'

You can then use a bot to comment your PR with the output.