Skip to content

Commit

Permalink
[tests] Use a bandit version that works with older python versions. (…
Browse files Browse the repository at this point in the history
…cherrypick of #11268) (#11278)

### Problem

Build is busted due to a new version of bandit that dropped support for older python versions.

### Solution

Pin bandit version used in this integration tests.

[ci skip-rust]
[ci skip-build-wheels]
  • Loading branch information
stuhood authored Dec 9, 2020
1 parent 73fd437 commit 60532fc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def run_bandit(
skip: bool = False,
additional_args: Optional[List[str]] = None,
) -> Sequence[LintResult]:
args = ["--backend-packages=pants.backend.python.lint.bandit"]
args = [
"--backend-packages=pants.backend.python.lint.bandit",
"--bandit-version=bandit==1.6.2",
]
if config:
rule_runner.create_file(relpath=".bandit", contents=config)
args.append("--bandit-config=.bandit")
Expand Down

0 comments on commit 60532fc

Please sign in to comment.