File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ max-line-length = 99
3
+ ignore = W503
4
+ exclude =
5
+ .git
6
+ .tox
7
+ venv*
8
+
9
+ # pending revision
10
+ cssselect/__init__.py
11
+ cssselect/parser.py
12
+ cssselect/xpath.py
13
+ docs/conf.py
14
+ setup.py
15
+ tests/test_cssselect.py
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
include :
10
+ - python-version : 3
11
+ env :
12
+ TOXENV : flake8
10
13
- python-version : 3
11
14
env :
12
15
TOXENV : security
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = security,py
2
+ envlist = flake8, security,py
3
3
4
4
[testenv]
5
+ basepython = python3
5
6
deps =
6
7
-r tests/requirements.txt
7
-
8
8
commands =
9
9
py.test --cov-report term --cov =cssselect
10
10
11
+ [testenv:flake8]
12
+ deps =
13
+ flake8 ==3.9.2
14
+ commands =
15
+ flake8 {posargs: cssselect setup.py tests docs/conf.py}
16
+
11
17
[testenv:security]
12
18
deps =
13
19
bandit
14
20
commands =
15
- bandit -r -c .bandit.yml {posargs:cssselect}
21
+ bandit -r -c .bandit.yml {posargs: cssselect}
You can’t perform that action at this time.
0 commit comments