-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (39 loc) · 725 Bytes
/
tox.ini
File metadata and controls
43 lines (39 loc) · 725 Bytes
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
[tox]
envlist =
py
typing
lint
packaging
isolated_build = True
skip_missing_interpreters = True
[testenv]
description = Run unit tests
extras =
dev
allowlist_externals =
pandoc
commands=
pytest {posargs}
[testenv:lint]
description = Lint codebase by running pre-commit (Black, isort, Flake8).
skip_install = true
deps =
pre-commit
commands = pre-commit run --all-files
[testenv:typing]
description = Run mypy.
deps =
mypy
commands =
mypy src tests setup.py
[testenv:packaging]
description = Check packaging for PyPI with twine
skip_install = true
allowlist_externals =
rm
deps =
twine
commands =
rm -rf dist
python setup.py sdist bdist_wheel
twine check dist/*