Skip to main content
Bandit is a linter for Python. You can enable the Bandit linter with:
trunk check enable bandit
bandit example output

Auto Enabling

Bandit will be auto-enabled if any Python files are present.

Settings

Bandit supports the following config files:
  • .bandit
You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.