-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (61 loc) · 1.4 KB
/
tox.ini
File metadata and controls
69 lines (61 loc) · 1.4 KB
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
62
63
64
65
66
67
68
69
[tox]
env_list =
coverage-erase
py{3.10, 3.11, 3.12, 3.13, 3.14}-{unidecode, text_unidecode}
pypy{3.11}-{unidecode, text_unidecode}
coverage-report
coverage-html
mypy
pycodestyle
[testenv]
depends =
py{3.10, 3.11, 3.12, 3.13, 3.14}-{unidecode, text_unidecode}: coverage-erase
pypy{3.11}-{unidecode, text_unidecode}: coverage-erase
deps =
coverage[toml]
pytest
unidecode: pip
unidecode: unidecode
commands_pre:
# If testing unidecode, ensure text_unidecode is unavailable.
unidecode: pip uninstall --yes text_unidecode
commands =
coverage run -m pytest test.py
[testenv:coverage_base]
deps =
coverage[toml]
[testenv:coverage-erase]
base = coverage_base
commands =
coverage erase
[testenv:coverage-report]
base = coverage_base
depends =
py{3.10, 3.11, 3.12, 3.13, 3.14}-{unidecode, text_unidecode}
pypy{3.11}-{unidecode, text_unidecode}
commands_pre =
- coverage combine
commands =
coverage report
[testenv:coverage-html]
base = coverage_base
depends =
coverage-report
commands =
coverage html --fail-under=0
[testenv:mypy]
deps =
mypy
unidecode
commands =
mypy
[testenv:pycodestyle]
deps =
pycodestyle
commands =
pycodestyle --ignore=E128,E261,E225,E501,W605 slugify test.py setup.py
[testenv:flake8]
deps =
flake8
commands =
flake8 --ignore=E501,F403,F401,E241,E225,E128 slugify/ setup.py test.py