-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
__email__ = "[email protected]" | ||
__copyright__ = "2023-2024, Patrick Lehmann" | ||
__license__ = "Apache License, Version 2.0" | ||
__version__ = "0.7.1" | ||
__version__ = "0.7.2" | ||
__keywords__ = ["Python3", "Sphinx", "Extension", "Report", "doc-string", "interrogate"] | ||
|
||
from hashlib import md5 | ||
|
@@ -59,6 +59,9 @@ | |
from sphinx.environment import BuildEnvironment | ||
from pyTooling.Decorators import export | ||
from pyTooling.Common import readResourceFile | ||
from sphinx.util.logging import getLogger | ||
|
||
from sphinx_reports.Common import ReportExtensionError | ||
|
||
from sphinx_reports import static as ResourcePackage | ||
|
||
|
@@ -173,9 +176,18 @@ def CheckConfigurationVariables(sphinxApplication: Sphinx, config: Config) -> No | |
from sphinx_reports.DocCoverage import DocCoverageBase | ||
from sphinx_reports.Unittest import UnittestSummary | ||
|
||
CodeCoverageBase.CheckConfiguration(sphinxApplication, config) | ||
DocCoverageBase.CheckConfiguration(sphinxApplication, config) | ||
UnittestSummary.CheckConfiguration(sphinxApplication, config) | ||
checkConfigurations = ( | ||
CodeCoverageBase.CheckConfiguration, | ||
DocCoverageBase.CheckConfiguration, | ||
UnittestSummary.CheckConfiguration, | ||
) | ||
|
||
for checkConfiguration in checkConfigurations: | ||
try: | ||
checkConfiguration(sphinxApplication, config) | ||
except ReportExtensionError as ex: | ||
logger = getLogger(__name__) | ||
logger.error(f"Caught {ex.__class__.__name__} when checking configuration variables.\n {ex}") | ||
|
||
@staticmethod | ||
def AddCSSFiles(sphinxApplication: Sphinx) -> None: | ||
|