Skip to main content
Version: 2.23 (prerelease)

check


pants check [args]

Run type checking or the lightest variant of compilation available for a language.

Backend: pants.core

Config section: [check]

Basic options

only

--check-only="['<str>', '<str>', ...]"
PANTS_CHECK_ONLY
pants.toml
[check]
only = [
'<str>',
'<str>',
...,
]
default: []

Only run these checkers and skip all others.

The checker names are outputted at the final summary of running this goal, e.g. mypy and javac. You can also run check --only=fake to get a list of all activated checkers.

You can repeat this option, e.g. check --only=mypy --only=javac or check --only=['mypy', 'javac'].

Advanced options

None

Deprecated options

None