Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make flake8-bandit work with latest bandit 1.7.3 version #22

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions flake8_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@ def _check_source(self):
return []

bnv = BanditNodeVisitor(
self.filename,
BanditMetaAst(),
BanditTestSet(BanditConfig(), profile=config.profile),
False,
[],
Metrics(),
fname=self.filename,
fdata=None,
metaast=BanditMetaAst(),
testset=BanditTestSet(BanditConfig(), profile=config.profile),
debug=False,
nosec_lines=[],
metrics=Metrics(),
)
bnv.generic_visit(self.tree)
return [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_version(fname="flake8_bandit.py"):
VERSION = get_version()

# What packages are required for this module to be executed?
REQUIRED = ["flake8", "bandit", "flake8-polyfill", "pycodestyle"]
REQUIRED = ["flake8", "bandit>=1.7.3", "flake8-polyfill", "pycodestyle"]

# What packages are optional?
EXTRAS = {
Expand Down