bandit icon indicating copy to clipboard operation
bandit copied to clipboard

Allow customising colours

Open savchenko opened this issue 8 months ago • 4 comments

Is your feature request related to a problem? Please describe. I'm always frustrated when Bandit shows bright yellow text on white background.

Describe the solution you'd like Allow customising colours OR configuration for black-on-white terminals.

Describe alternatives you've considered bandit -f txt

Additional context Image

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

savchenko avatar Jun 11 '25 13:06 savchenko

Sounds good, would you be up for working on this @savchenko ?

lukehinds avatar Jun 15 '25 13:06 lukehinds

@lukehinds, acta non verba: https://github.com/PyCQA/bandit/pull/1276

savchenko avatar Jun 15 '25 18:06 savchenko

Maybe a (bad) workaround:

bandit -r . | cat

At least it is now also legible on a white background.

daniel-mohr avatar Jun 25 '25 09:06 daniel-mohr

@daniel-mohr Piping to cat is equivalent to using the -f txt output option.

ericwb avatar Jun 26 '25 23:06 ericwb