-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
30 lines (26 loc) · 903 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[flake8]
max-line-length = 127
[tox]
envlist = tests, flake8, mypy
skipsdist = True
[testenv:tests]
basepython = python3
deps = -rrequirements.txt
install_command = pip3 install {opts} {packages}
commands = python -m unittest discover tests
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 --version
flake8 index.py src/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 index.py src/ tests/ --count --max-complexity=10 --statistics
[testenv:mypy]
basepython = python3
deps = mypy
types-Flask
types-requests
commands = mypy src/ --ignore-missing-imports --cache-dir=.mypy_cache