GitHub Actions - wemake-python-styleguide 1.1.0 documentation (original) (raw)

View this page

Toggle table of contents sidebar

GitHub Action badge

Good news: we ship pre-built GitHub Action with this project.

You can use it from the GitHub Marketplace:

You can also specify any version instead of the latest tag.

Inputs

reporter

We support three reporting options:

Take a note that github-check, github-pr-review and github-pr-checkrequires GITHUB_TOKEN environment variable to be set.

Default reporter looks like so:

https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/docs/_static/terminal.png

For example, that’s how github-pr-reviews can be set up:

That’s how the result will look like:

https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/docs/_static/reviewdog.png

path

We also support custom path to be specified:

cwd

We also support custom cwd to be specified, it will be used to cd into before any other actions. It can be a custom subfolder with your configuration, etc.

fail_workflow

Option which can be set to false with fail_workflow: false not to fail the workflow even if violations were found.

filter_mode

Can be used to find only new violations and ignore old ones. See https://github.com/reviewdog/reviewdog?tab=readme-ov-file#filter-mode

Outputs

We also support outputs from the spec, so you can later pass the output of wemake-python-styleguide to somewhere else.