Skip to content

Commit

Permalink
move to pytest-doctestplus
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jul 24, 2024
1 parent d3a65c6 commit badc14c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ci/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ run "Style Checking" "ruff format fgpyo tests"
run "Linting" "ruff check --fix fgpyo tests"
run "Type Checking" "mypy fgpyo tests --config $parent/mypy.ini"
run "Unit Tests" "python -m pytest -vv -r sx tests"
run "Doc Tests" "python -m pytest -vv -r sx fgpyo"
run "Doc Tests" "python -m pytest -vv -r sx fgpyo tests"
run "Make docs" "mkdocs build --strict"

if [ -z "$failures" ]; then
Expand Down
34 changes: 20 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ numpy = [
{version = "^1.24.4", python = "<3.9"}
]
strenum = "^0.4.15"
mktestdocs = "^0.2.2"
pytest-doctestplus = "^1.2.1"

[tool.poetry.group.dev.dependencies]
# dependencies for linting, style checking, and unit testing
Expand Down Expand Up @@ -73,5 +73,6 @@ unfixable = ["B"]
force-single-line = true

[tool.pytest.ini_options]
addopts = "--doctest-modules"
addopts = "--doctest-plus"
doctest_plus = "enabled"
doctest_optionflags = "NORMALIZE_WHITESPACE"

0 comments on commit badc14c

Please sign in to comment.