Skip to content

Commit

Permalink
Merged in refactor/suppress_warnings_in_tests (pull request #360)
Browse files Browse the repository at this point in the history
suppress warnings of pydicom VR length

Approved-by: Randy Taylor
  • Loading branch information
jrkerns committed Apr 1, 2024
2 parents e9350d3 + cc47970 commit 5a93865
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import os
import sys
import warnings

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand All @@ -22,6 +23,10 @@
sys.path.insert(0, os.path.abspath("../.."))
# sys.path.append(os.path.abspath('sphinxext'))

# suppress pydicom VR length warnings; just creates noise

warnings.filterwarnings("ignore", category=UserWarning, module="pydicom")

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -49,7 +54,6 @@
"ignore-module-all": True,
}


# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down Expand Up @@ -122,7 +126,6 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down Expand Up @@ -225,13 +228,13 @@

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# 'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ build-backend = "poetry.core.masonry.api"
testpaths = "tests_basic"
python_files = "test_*.py"
addopts = "--dist loadscope"
filterwarnings = "ignore::UserWarning:pydicom"

[tool.coverage.run]
source = [
Expand Down

0 comments on commit 5a93865

Please sign in to comment.