Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.15 KB

bandit.md

File metadata and controls

45 lines (32 loc) · 1.15 KB
description title layout
Bandit is a security linter for Python codebases. Bandit flags problems like hard-coded passwords, injection vulnerabilities, and the use of insecure libraries.
Trunk | How to run Bandit
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Bandit

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.

Links