Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

20 changes: 0 additions & 20 deletions doc/Makefile

This file was deleted.

31 changes: 21 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ min_version = 4.0
env_list = py3{9,10,11,12,13}
pypy{310,311}
graalpy
flake8, black, typecheck
labels =
test = py3{9,10,11,12,13},pypy{310,311},graalpy
cpy = py3{9,10,11,12,13}
pypy = pypy{310,311}
check = flake8, black, typecheck
check, format, typecheck

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

[testenv:py3{9,10,11,12}]
[testenv:py3{9,10,11,12,13}]
labels = test, cpy
deps =
pytest
pyyaml
google-re2
ua-parser-rs
./ua-parser-builtins

[testenv:flake8]
[testenv:pypy{310,311}]
labels = test, pypy

[testenv:check]
labels = check
package = skip
deps = ruff
commands = ruff check {posargs}

[testenv:black]
[testenv:format]
description = Runs the formatter (just showing errors by default)
labels = check
package = skip
deps = ruff
commands = ruff format {posargs:--diff}

[testenv:typecheck]
labels = check
package = skip
deps =
mypy
types-PyYaml
./ua-parser-builtins
commands = mypy {posargs:}
commands = mypy {posargs}

[testenv:docs]
description = Builds the documentation
labels =
package = skip
deps = sphinx
commands = sphinx-build -M {posargs:html} doc docs/_build
Loading