Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame] | 1 | # 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] |
| 5 | minversion = 3.4.0 |
| 6 | skipsdist = True |
| 7 | envlist = py36 |
| 8 | requires = pip == 21.1.2 |
| 9 | setuptools >= 30.0.0 |
| 10 | |
| 11 | [testenv] |
| 12 | usedevelop = True |
| 13 | setenv = VIRTUAL_ENV={envdir} |
| 14 | OS_STDOUT_NOCAPTURE=False |
| 15 | OS_STDERR_NOCAPTURE=False |
| 16 | deps = |
| 17 | -r{toxinidir}/test-requirements.txt |
| 18 | -r{toxinidir}/requirements.txt |
| 19 | commands = |
| 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] |
| 34 | exclude = .git,.tox,.eggs,.pytest_cache,doc,venv |
| 35 | show-source = true |
| 36 | enable-extensions = H904 |
| 37 | |
| 38 | [pycodestyle] |
| 39 | exclude = .git,.tox,.eggs,.pytest_cache,doc,venv |