| 1 |
import os |
| 2 |
import sys |
| 3 |
|
| 4 |
project = "autodoc_traits tests" |
| 5 |
extensions = [ |
| 6 |
"autodoc_traits", |
| 7 |
# sphinx.ext.napoleon is added to avoid warnings if testing with |
| 8 |
# :inherited-members:` where the super classe traitlets.HasTraits has numpy |
| 9 |
# or google-format docstrings that the napoleon can help interpret. |
| 10 |
"sphinx.ext.napoleon", |
| 11 |
] |
| 12 |
|
| 13 |
# ensure sample_module.py is on path |
| 14 |
tests_dir = os.path.join(os.path.dirname(__file__), "..") |
| 15 |
tests_dir = os.path.abspath(tests_dir) |
| 16 |
sys.path.insert(0, tests_dir) |
| 17 |
|
| 18 |
# Don't parse .rst documents expected to raise an error unless we want to test |
| 19 |
# that specifically. |
| 20 |
exclude_patterns = ["**/*_raises_error.rst"] |