-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
49 lines (43 loc) · 957 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
49
[tox]
envlist = py3, mypy, flake8, isort, black
skip_missing_interpreters = true
skipsdist = true
[testenv]
setenv = PYTHONHASHSEED = 123
passenv = ACOUSTID_TEST_*
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands = pytest -v tests/
[testenv:mypy]
basepython = python3
skip_install = true
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands = mypy acoustid/ tests/
[testenv:flake8]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands = flake8 acoustid/ tests/
[testenv:isort]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands = isort --check acoustid/ tests/
[testenv:black]
basepython = python3
skip_install = true
deps =
-rrequirements_dev.txt
commands = black --check acoustid/ tests/
[flake8]
ignore = E128,E121,W504,F401,W503,E231
max-line-length = 160
per-file-ignores =
tests/__init__.py:E501
tests/test_api_v1.py:E501
tests/test_pg.py:E231,E501