This GitHub Action runs pycodestyle
to ensure the code is well formatted.
Give arguments to the pycodestyle command.
- 0 = success
- 1 = fail
Output of the pycodestyle command. Shows formatting errors.
- 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.