Skip to content

Commit 4e9222a

Browse files
authored
Merge branch 'master' into pylint
2 parents 438b0c0 + 49a3e5b commit 4e9222a

File tree

6 files changed

+23
-9
lines changed

6 files changed

+23
-9
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ language: python
22
sudo: false
33
matrix:
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

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
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.
2828
extensions = [
29+
'notfound.extension',
2930
'sphinx.ext.autodoc',
3031
'sphinx.ext.doctest',
3132
'sphinx.ext.intersphinx',
@@ -248,7 +249,10 @@
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 ------------------------------------------------------

docs/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ Tests
4242
`pytest`_ is the preferred way to run tests. Just run: ``pytest`` from the
4343
root 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
4747
the root directory - tests will be executed for all available
4848
Python interpreters.
4949

50-
.. _tox: http://tox.testrun.org
5150
.. _pytest: https://docs.pytest.org/en/latest/
5251

5352

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sphinx
2+
sphinx-notfound-page
3+
sphinx_rtd_theme

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2126
deps =
2227
{[testenv]deps}
2328
pylint
@@ -26,9 +31,7 @@ commands =
2631

2732
[docs]
2833
changedir = docs
29-
deps =
30-
sphinx
31-
sphinx_rtd_theme
34+
deps = -rdocs/requirements.txt
3235

3336
[testenv:docs]
3437
changedir = {[docs]changedir}

0 commit comments

Comments
 (0)