-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (54 loc) · 1.36 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
51
52
53
54
55
56
57
58
59
60
61
# content of: tox.ini , put in same dir as setup.py
[tox]
isolated_build = True
envlist =
pyroma
lint
mypy
# documentation linters/checkers
docstr-coverage
# the actual tests
py39
[gh-actions]
python =
3.9: py39, pyroma, mypy, docstr-coverage
[testenv]
# install pytest in the virtualenv where commands will be executed
deps = pytest
commands =
# NOTE: you can run any command line tool here - not just tests
pytest
[testenv:pyroma]
deps =
pygments
pyroma
skip_install = true
commands = pyroma --min=10 .
description = Run the pyroma tool to check the package friendliness of the project.
[testenv:lint]
skip_install = true
deps =
flake8
flake8-colors
wemake-python-styleguide
commands =
flake8 src/ tests/
description = Run the flake8 tool with wemake_python_styleguide plugins and flake-colors
[testenv:mypy]
deps = mypy
skip_install = true
commands = mypy --install-types --non-interactive --ignore-missing-imports src/clicker/
description = Run the mypy tool to check static typing on the project.
[testenv:docstr-coverage]
skip_install = true
deps =
docstr-coverage
commands =
docstr-coverage src/ tests/ --skip-private --skip-magic
description = Run the docstr-coverage tool to check documentation coverage
[coverage:report]
show_missing = True
precision = 2
skip_covered = True
skip_empty = True
sort = Cover