This commit is contained in:
Miguel Grinberg
2023-12-22 20:26:07 +00:00
committed by GitHub
parent 7a329d98a8
commit 20ea305fe7
114 changed files with 3868 additions and 6410 deletions

16
tox.ini
View File

@@ -1,5 +1,5 @@
[tox]
envlist=flake8,py37,py38,py39,py310,py311,upy,benchmark
envlist=flake8,py38,py39,py310,py311,py312,upy,benchmark
skipsdist=True
skip_missing_interpreters=True
@@ -10,12 +10,13 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy3: pypy3
[testenv]
commands=
pip install -e .
pytest -p no:logging --cov=src --cov-config=.coveragerc --cov-branch --cov-report=term-missing --cov-report=xml
pytest -p no:logging --cov=src --cov-config=.coveragerc --cov-branch --cov-report=term-missing --cov-report=xml tests
deps=
pytest
pytest-cov
@@ -24,12 +25,6 @@ deps=
setenv=
PYTHONPATH=libs/common
[testenv:flake8]
deps=
flake8
commands=
flake8 --ignore=W503 --exclude src/utemplate,tests/libs src tests examples
[testenv:upy]
allowlist_externals=sh
commands=sh -c "bin/micropython run_tests.py"
@@ -55,3 +50,8 @@ commands=
setenv=
PATH={env:PATH}{:}../../bin
[testenv:flake8]
deps=
flake8
commands=
flake8 --ignore=W503 --exclude examples/templates/utemplate/templates src tests examples