Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Merge branch 'master' into pylint

Adrián Chaves8c5a8a02ae82
diff --cc .travis.yml
index 9840e3c20,4e28d6f11..b7aa0612a
--- a/.travis.yml
+++ b/.travis.yml
@@@ -7,15 -7,14 +7,16 @@@ branches
- /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
matrix:
include:
+ - env: TOXENV=security
+ python: 3.8
- env: TOXENV=flake8
python: 3.8
+ - env: TOXENV=pylint
+ python: 3.8
- env: TOXENV=pypy3
- python: 3.5
- env: TOXENV=py35
python: 3.5
- - env: TOXENV=py35-pinned
+ - env: TOXENV=pinned
python: 3.5
- env: TOXENV=py36
python: 3.6
diff --cc tox.ini
index 3f20984cc,72e40696b..d97aab3d2
--- a/tox.ini
+++ b/tox.ini
@@@ -21,13 -21,30 +21,43 @@@ passenv
GCS_TEST_FILE_URI
GCS_PROJECT_ID
commands =
- py.test --cov=scrapy --cov-report= {posargs:docs scrapy tests}
+ py.test --cov=scrapy --cov-report= {posargs:--durations=10 docs scrapy tests}
- [testenv:py35]
- basepython = python3.5
+ [testenv:security]
+ basepython = python3
+ deps =
+ bandit
+ commands =
+ bandit -r -c .bandit.yml {posargs:scrapy}
+
+ [testenv:flake8]
+ basepython = python3
+ deps =
+ {[testenv]deps}
+ pytest-flake8
+ commands =
+ py.test --flake8 {posargs:docs scrapy tests}
++
++[testenv:pylint]
++basepython = python3
++deps =
++ {[testenv]deps}
++ # Optional dependencies
++ boto
++ reppy
++ robotexclusionrulesparser
++ # Test dependencies
++ pylint
++commands =
++ pylint conftest.py docs extras scrapy setup.py tests
+
+ [testenv:pypy3]
+ basepython = pypy3
+ commands =
+ py.test {posargs:--durations=10 docs scrapy tests}
- [testenv:py35-pinned]
- basepython = python3.5
+ [testenv:pinned]
+ basepython = python3
deps =
-ctests/constraints.txt
cryptography==2.0