Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 0 additions & 27 deletions .readthedocs.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/docbuild_requirements.txt

This file was deleted.

21 changes: 19 additions & 2 deletions documentation/nbvalNotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,30 @@
import subprocess

# noinspection PyPackageRequirements
import pytest # pylint: disable=unused-import # noqa
try:
import pytest
except ImportError: # pragma: no cover
# fail here to get a better message than file-not-found below.
raise ImportError(
'Please install pytest -- in the music21 directory run "pip install ".[dev]"'
)

# noinspection PyPackageRequirements
import nbval # pylint: disable=unused-import # noqa
try:
import nbval
except ImportError: # pragma: no cover
raise ImportError(
'Please install nbval -- in the music21 directory run "pip install ".[dev]"'
)

from music21 import environment
from music21 import common

if pytest is None or nbval is None: # pragma: no cover
# this will never run, but it's important to use pytest and nbval variables
# or some modern code linters will remove the import pytest, import nbval lines.
raise ImportError('Please install pytest and nbval')

# pytest --nbval usersGuide_15_key.ipynb --nbval-sanitize-with ../../nbval-sanitize.cfg -q
skip = ['installJupyter.ipynb']

Expand Down
2 changes: 1 addition & 1 deletion documentation/source/readthedocs_conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configuration file for readthedocs
# Configuration file for docs
# builds everything before sphinx

import os
Expand Down