Skip to main content
Version: 2.23 (prerelease)

visibility


Options for the visibility rules implementation of the dependency rules API.

Backend: pants.backend.experimental.visibility

Config section: [visibility]

Basic options

enforce

--[no-]visibility-enforce
PANTS_VISIBILITY_ENFORCE
pants.toml
[visibility]
enforce = <bool>
default: True

Visibility rules are enforced whenever dependencies are calculated unless enforce is set to false.

skip

--[no-]visibility-skip
PANTS_VISIBILITY_SKIP
pants.toml
[visibility]
skip = <bool>
default: False

If true, don't use Visibility Rules when running pants lint.

Advanced options

None

Deprecated options

None

None