Skip to content

Commit dfb360b

Browse files
committed
Improve tox file
- add an entry for the docs (and remove the docs makefile, given sphinx's make-mode) - remove the old automation makefile - move the labels into the individual testenvs, easier to maintain - also apparently I forgot to add cpython 3.13 to the cpython testenv?
1 parent a187a29 commit dfb360b

File tree

3 files changed

+21
-50
lines changed

3 files changed

+21
-50
lines changed

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

tox.ini

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ min_version = 4.0
33
env_list = py3{9,10,11,12,13}
44
pypy{310,311}
55
graalpy
6-
flake8, black, typecheck
7-
labels =
8-
test = py3{9,10,11,12,13},pypy{310,311},graalpy
9-
cpy = py3{9,10,11,12,13}
10-
pypy = pypy{310,311}
11-
check = flake8, black, typecheck
6+
check, format, typecheck
127

138
[testenv]
9+
labels = test
1410
# wheel install
1511
package = wheel
1612
# wheel is universal so can use the same wheel for all envs
@@ -25,28 +21,43 @@ deps =
2521
commands =
2622
pytest -Werror --doctest-glob="*.rst" {posargs}
2723

28-
[testenv:py3{9,10,11,12}]
24+
[testenv:py3{9,10,11,12,13}]
25+
labels = test, cpy
2926
deps =
3027
pytest
3128
pyyaml
3229
google-re2
3330
ua-parser-rs
3431
./ua-parser-builtins
3532

36-
[testenv:flake8]
33+
[testenv:pypy{310,311}]
34+
labels = test, pypy
35+
36+
[testenv:check]
37+
labels = check
3738
package = skip
3839
deps = ruff
3940
commands = ruff check {posargs}
4041

41-
[testenv:black]
42+
[testenv:format]
43+
description = Runs the formatter (just showing errors by default)
44+
labels = check
4245
package = skip
4346
deps = ruff
4447
commands = ruff format {posargs:--diff}
4548

4649
[testenv:typecheck]
50+
labels = check
4751
package = skip
4852
deps =
4953
mypy
5054
types-PyYaml
5155
./ua-parser-builtins
52-
commands = mypy {posargs:}
56+
commands = mypy {posargs}
57+
58+
[testenv:docs]
59+
description = Builds the documentation
60+
labels =
61+
package = skip
62+
deps = sphinx
63+
commands = sphinx-build -M {posargs:html} doc docs/_build

0 commit comments

Comments
 (0)