Skip to content

Commit 332b7e8

Browse files
authored
Merge pull request #173 from Gallaecio/bandit
Add bandit to CI
2 parents c2eb8d5 + b03d165 commit 332b7e8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.bandit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
skips:
2+
- B320
3+
- B410

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ branches:
66
- /^v\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
77
matrix:
88
include:
9+
- python: 3.8
10+
env: TOXENV=security
911
- python: 3.8
1012
env: TOXENV=flake8
1113
- python: 2.7

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ deps =
77

88
commands = py.test --cov=parsel --cov-report= {posargs:parsel tests}
99

10+
[testenv:security]
11+
basepython = python3.8
12+
deps =
13+
bandit
14+
commands =
15+
bandit -r -c .bandit.yml {posargs:parsel}
16+
1017
[testenv:flake8]
1118
basepython = python3.8
1219
deps =

0 commit comments

Comments
 (0)