| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thank you for contributing! 👋 |
Sorry, something went wrong.
| black = ">=23.1" | ||
| bandit = [ | ||
| {version=">=1.5,<1.7", extras=["toml"], python="^3.7,<3.8"}, | ||
| {version=">=1.7.9", extras=["toml"], python="^3.8"}, |
There was a problem hiding this comment.
bandit 1.8.6 requires Python >= 3.9
Sorry, something went wrong.
| if key in target and isinstance(value, list): | ||
| _logger.debug("Merging %s: %s", key, value) | ||
| target[key].extend(value) |
There was a problem hiding this comment.
Good, this allows projects to extend exclude_dirs.
Sorry, something went wrong.
| _lint.lint_bandit( | ||
| qs_or_vs=_qs_or_vs(obj["VERBOSITY"]), | ||
| pyproject_config=pyproj_bandit_config, | ||
| file_or_dir=file_or_dir or [pathlib.Path.cwd()], |
There was a problem hiding this comment.
FYI, there is an optional targets key in the config file.
I think defaulting to . and supporting excludes is probably enough for most projects, though.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add bandit as a provided tool.
While bandit takes multiple "-c file" parameters, it only uses the latter...
So, to provide a global default (that says it's ok to assert in tests, and to skip a lot of non-python folders), AND support for a using project to provide config in their pyproject.toml, this is setup to load the vendored-config file, and merge in data from pyproject.toml and store the result in a temp file.