Skip to content

Commit 49a3e5b

Browse files
authored
Merge pull request #149 from Gallaecio/bandit
Add bandit to CI
2 parents 343f17a + 6fedcf2 commit 49a3e5b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-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+
- B101
3+
- B107

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ language: python
22
sudo: false
33
matrix:
44
include:
5+
- python: 3.8
6+
env: TOXENV=security
57
- python: 2.7
68
env: TOXENV=py27
79
- python: pypy

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ commands =
1616
--cov=w3lib --cov-report=term \
1717
{posargs:w3lib tests}
1818

19+
[testenv:security]
20+
deps =
21+
bandit
22+
commands =
23+
bandit -r -c .bandit.yml {posargs:w3lib}
24+
1925
[docs]
2026
changedir = docs
2127
deps = -rdocs/requirements.txt

0 commit comments

Comments
 (0)