Skip to content

Commit 8152d01

Browse files
authored
Pin importlib-metadata for bandit tests (#908)
1 parent 2aad83c commit 8152d01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ omit = */contract/suite/*
44

55
[report]
66
show_missing = True
7-
fail_under = 99
7+
fail_under = 98

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ repos:
5555
# have to skip B101, contract tests use it and there's no way to skip for specific files
5656
# have to skip B322, as there is no way to indicate the codebase is Python 3 only (input only vulnerable in Py2)
5757
args: ["--skip", "B101,B322"]
58+
additional_dependencies:
59+
- "importlib-metadata<5" # https://github.com/PyCQA/bandit/issues/956
5860
- repo: local
5961
hooks:
6062
- id: pylint-local

0 commit comments

Comments
 (0)