Download backtest/analyzer/exceptions.py from whassan/Rukku: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/spaces/whassan/Rukku/resolve/main/backtest/analyzer/exceptions.py
- Command line
-
hf download hf://spaces/whassan/Rukku/backtest/analyzer/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/whassan/Rukku/resolve/main/backtest/analyzer/exceptions.py
567 Bytes
| """Exceptions for the analyzer module.""" | |
| class AnalyzerError(Exception): | |
| """Base Analyzer error.""" | |
| class RepositoryNotAnalyzable(AnalyzerError): | |
| """Repository contents could not be fully inspected.""" | |
| class SafetyCheckFailed(AnalyzerError): | |
| """Static inspection found a disallowed pattern.""" | |
| def __init__(self, pattern_name, description, detail=""): | |
| self.pattern_name = pattern_name | |
| self.description = description | |
| super().__init__( | |
| f"Safety check failed: {pattern_name} - {description}. {detail}" | |
| ) |