Skip to content

Commit 05c0e76

Browse files
committed
Add bandit to CI
1 parent eb40f21 commit 05c0e76

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.bandit.yml

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

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
language: python
2-
python:
3-
- '2.7'
4-
- '3.4'
5-
- '3.5'
6-
- '3.6'
7-
- '3.7'
2+
matrix:
3+
include:
4+
- env: TOXENV=security
5+
python: 3.8
6+
- python: 2.7
7+
- python: 3.4
8+
- python: 3.5
9+
- python: 3.6
10+
- python: 3.7
811
install:
912
- pip install -r tests/requirements.txt -e .
1013
script:

tox.ini

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

88
commands =
99
py.test --cov-report term --cov=cssselect
10+
11+
[testenv:security]
12+
deps =
13+
bandit
14+
commands =
15+
bandit -r -c .bandit.yml {posargs:cssselect}

0 commit comments

Comments
 (0)