Skip to main content
Version: 2.15 (deprecated)

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 checkerss and skip all others.

The checkers 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 checkerss.

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

Advanced options

None

Deprecated options

None