pyright is a linter for Python.

You can enable the pyright linter with:

trunk check enable pyright

Auto Enabling

pyright will be auto-enabled if a pyrightconfig.json config file is present.


pyright supports the following config files:

  • pyrightconfig.json

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated