File tree Expand file tree Collapse file tree 6 files changed +23
-9
lines changed Expand file tree Collapse file tree 6 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1+ skips :
2+ - B101
3+ - B107
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ language: python
22sudo : false
33matrix :
44 include :
5- - python : 3.7
5+ - python : 3.8
6+ env : TOXENV=security
7+ - python : 3.8
68 env : TOXENV=pylint
79 - python : 2.7
810 env : TOXENV=py27
Original file line number Diff line number Diff line change 2626# Add any Sphinx extension module names here, as strings. They can be extensions
2727# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2828extensions = [
29+ 'notfound.extension' ,
2930 'sphinx.ext.autodoc' ,
3031 'sphinx.ext.doctest' ,
3132 'sphinx.ext.intersphinx' ,
248249
249250
250251# Example configuration for intersphinx: refer to the Python standard library.
251- intersphinx_mapping = {'http://docs.python.org/' : None }
252+ intersphinx_mapping = {
253+ 'python' : ('http://docs.python.org/3' , None ),
254+ 'tox' : ('https://tox.readthedocs.io/en/latest' , None ),
255+ }
252256
253257
254258# --- Nitpicking options ------------------------------------------------------
Original file line number Diff line number Diff line change @@ -42,12 +42,11 @@ Tests
4242`pytest `_ is the preferred way to run tests. Just run: ``pytest `` from the
4343root directory to execute tests using the default Python interpreter.
4444
45- `tox `_ could be used to run tests for all supported Python versions.
46- Install it (using 'pip install tox') and then run ``tox `` from
45+ :doc: `tox < tox:index >` could be used to run tests for all supported Python
46+ versions. Install it (using 'pip install tox') and then run ``tox `` from
4747the root directory - tests will be executed for all available
4848Python interpreters.
4949
50- .. _tox : http://tox.testrun.org
5150.. _pytest : https://docs.pytest.org/en/latest/
5251
5352
Original file line number Diff line number Diff line change 1+ sphinx
2+ sphinx-notfound-page
3+ sphinx_rtd_theme
Original file line number Diff line number Diff line change @@ -16,8 +16,13 @@ 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[testenv:pylint]
20- basepython = python3.7
2126deps =
2227 {[testenv]deps}
2328 pylint
@@ -26,9 +31,7 @@ commands =
2631
2732[docs]
2833changedir = docs
29- deps =
30- sphinx
31- sphinx_rtd_theme
34+ deps = -rdocs/requirements.txt
3235
3336[testenv:docs]
3437changedir = {[docs]changedir}
You can’t perform that action at this time.
0 commit comments