-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
48 lines (44 loc) · 987 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = fstest,mypy,flake8
[testenv:tests]
basepython = python3
skip_install = false
pass_env = *
deps =
pytest
pytest-cov
mypy
fs
./onedatafilerestclient
commands = py.test -v --cov=fs.onedatarestfs --junitxml=onedatarestfs-tests-results.xml tests/fs/onedatarestfs/test_onedatarestfs.py -s []
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-docstrings
flake8-import-order
pep8-naming
flake8-colors
commands =
flake8 fs setup.py
[testenv:yapf]
basepython = python3
skip_install = true
deps =
yapf
commands =
yapf -dr onedatarestfs tests setup.py
[testenv:mypy]
basepython = python3
skip_install = false
deps =
mypy
requests
fs
types-requests
types-urllib3
./onedatafilerestclient
commands =
python -m mypy --strict --disallow-untyped-defs --show-error-context --non-interactive --install-types \
fs/onedatarestfs/onedatarestfs.py fs/onedatarestfs/errors.py