-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (44 loc) · 1.08 KB
/
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
50
[tox]
minversion = 3.0.0
allowlist_externals = /bin/sh
envlist =
docs
style
type_check
coverage_erase
py36
py310
coverage_report
requires =
setuptools
setuptools_scm
wheel
skip_missing_interpreters = True
[testenv:docs]
skip_install = True
commands =
/bin/sh -c "cd docs && sphinx-build -W -b html source/ _build/html"
[testenv:style]
skip_install = True
commands =
black --version
black --check --line-length 120 --target-version py36 aerisweather_api_v1/ tests/
flake8 --version
flake8 --max-line-length 120 aerisweather_api_v1/ tests/
[testenv:type_check]
skip_install = True
commands =
mypy --version
mypy --config-file {toxinidir}/mypy.ini --strict aerisweather_api_v1/ tests/
[testenv:coverage_erase]
skip_install = True
commands = coverage erase
[testenv]
deps = -r {toxinidir}/requirements-dev.txt
commands =
coverage --version
pytest --version
coverage run --append --source aerisweather_api_v1/ -m pytest {posargs:tests/}
[testenv:coverage_report]
skip_install = True
commands = coverage report --show-missing