actions-marketplace-validations/Run mypy with reviewdog

🐶 Run mypy with reviewdog on pull requests to improve code review experience.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 28, 2026
License
Public domain

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/tsuyoshicho_action-mypy@9181d99fd0993e7dd76400cf39f44dca2571922c # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenGITHUB_TOKENno${{ github.token }}
workdirWorking directory of where to run mypy command. Relative to the root directory. no.
targetTarget files and/or directories of mypy command. Enumerate in a space-separated list. Relative to the working directory. no.
execute_commandmypy execute command. Normally it is "mypy", but for example "poetry run mypy" if you want to run at Poetry without activating the virtual environment. nomypy
setup_commandmypy setup command. Runs when "setup_method" is "install" or required by "adaptive". If you want to fix the version of mypy, set the value as in the following example. "pip install mypy==1.6.0" nopip install mypy
setup_methodmypy setup method. Select from below. "nothing" - no setup process. This option expects the user to prepare the environment (ex. previous workflow step executed "pip install -r requirements.txt"). If you do not want immediately package installation (e.g., in a poetry environment), must be this. "adaptive" - Check "execute_command" with "--version" is executable. If it can be executed, do the same as "nothing", otherwise do the same as "install". "install" - execute "setup_command". Incorrect values behave as "adaptive". nonothing
install_typesPre-run mypy and check for missing stubs. Then perform stub installation. (ex. ${execute_command} --install-types) notrue
levelReport level for reviewdog [info,warning,error]noerror
reporterReporter of reviewdog command [github-pr-check,github-pr-review].nogithub-pr-check
filter_modeFiltering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is added. noadded
fail_levelOptional. Exit code control for reviewdog, [none,any,info,warning,error] Default is `none`. none
fail_on_errorDeprecated. Optional. Exit code for reviewdog when errors are found [true,false] Default is `false`. If `true` is set, it will be interpreted as "-fail-level=error". But if "-fail-level" is set non-`none`, it will be ignored. false
reviewdog_flagsAdditional reviewdog flagsno""
mypy_flagsmypy options (default: <none>)no""
tool_nameTool name to use for reviewdog reportermypy
ignore_noteCurrently, this option is always true. Ignore "note: entries" that as reported by mypy. Old description: Ignore note entry. mypy report some error with optional note entry. This option is workaround. notrue
output_jsonUse the JSON output format available in mypy 1.11 or higher. This option defaults to false due to version limitations and because it is still experimental. Note the mypy version when setting to true. nofalse

no outputs