Skip to content
Merged
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: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ black = "^20.8b1"
sphinx = "^1.8.5"
mypy = "^0.812"
flake8 = "^3.9.2"
types-PyYAML = "^6.0.1"
types-setuptools = "^57.4.2"
types-toml = "^0.10.1"


[tool.poetry.plugins."pytest11"]
"nuts"="nuts.plugin"
Expand Down Expand Up @@ -107,41 +111,41 @@ testpaths = "tests"
[testenv]
description = Run pytest and generate report
deps =
pytest
pytest-cov
pytest >= 6.1.1
pytest-cov >= 2.10.1
commands = pytest {posargs} --junitxml=test-reports/pytest.xml --cov="{envsitepackagesdir}/nuts" --cov=tests --cov-report xml:test-reports/coverage.xml
# envsitepackagesdir see: https://tox.readthedocs.io/en/latest/example/pytest.html


[testenv:black]
description = Check formatting with black
skip_install = true
deps = black
deps = black >= 20.8b1
commands = black --check {posargs} .

[testenv:mypy]
description = Check typing with mypy
deps = mypy
types-PyYAML
deps = mypy >= 0.812
types-PyYAML >= 6.0.1
passenv = TERM
commands = mypy {posargs} nuts tests

[testenv:docs]
description = Build docs with sphinx
deps = sphinx
deps = sphinx >= 4.3.0
changedir = docs/
commands = sphinx-build {posargs} source build

[testenv:flake8]
description = Enforce style with Flake8
deps = flake8
deps = flake8 >= 3.9.2
commands = flake8 --max-line-length 88 nuts/ tests/

[testenv:pytest-main]
description = Run project tests against pytest-main branch
deps =
git+https://github.com/pytest-dev/pytest.git#main
pytest-cov
pytest-cov >= 2.10.1
commands = pytest {posargs} --junitxml=test-reports/pytest.xml --cov="{envsitepackagesdir}/nuts" --cov=tests --cov-report xml:test-reports/coverage.xml
# envsitepackagesdir see: https://tox.readthedocs.io/en/latest/example/pytest.html

Expand Down