blob: e637722ef096241c5330e17e854e4708b5daf04d [file] [log] [blame]
Michal Kobus492d8bc2021-02-15 16:54:13 +01001# TODO(mk): Enabled tests when Python 3.6 is available in CI.
2# Python 3.5 reached the end of its life on September 13th, 2020.
3# The 3.5 release misses important security fixes.
4[tox]
5minversion = 3.4.0
6skipsdist = True
7envlist = py36
8requires = pip == 21.1.2
9 setuptools >= 30.0.0
10
11[testenv]
12usedevelop = True
13setenv = VIRTUAL_ENV={envdir}
14 OS_STDOUT_NOCAPTURE=False
15 OS_STDERR_NOCAPTURE=False
16deps =
17 -r{toxinidir}/test-requirements.txt
18 -r{toxinidir}/requirements.txt
19commands =
20 {toxinidir}/run-tests.sh {posargs}
21 {toxinidir}/run-func-tests.sh {posargs}
22 # D100: Missing docstring in public module
23 # D101: Missing docstring in public class
24 # D102: Missing docstring in public method
25 # D103: Missing docstring in public function
26 # D104: Missing docstring in public package
27 # D107: Missing docstring in __init__
28 flake8 -v --ignore D100,D101,D102,D103,D104,D107
29 pycodestyle -v
30 # B108: Probable insecure usage of temp file/directory.
31 bandit -r -x tests -s B108 sf_notifier
32
33[flake8]
34exclude = .git,.tox,.eggs,.pytest_cache,doc,venv
35show-source = true
36enable-extensions = H904
37
38[pycodestyle]
39exclude = .git,.tox,.eggs,.pytest_cache,doc,venv