Raised when isort is told to sort imports within code that has existing syntax errors
| 27 | |
| 28 | |
| 29 | class ExistingSyntaxErrors(ISortError): |
| 30 | """Raised when isort is told to sort imports within code that has existing syntax errors""" |
| 31 | |
| 32 | def __init__(self, file_path: str): |
| 33 | super().__init__( |
| 34 | f"isort was told to sort imports within code that contains syntax errors: {file_path}." |
| 35 | ) |
| 36 | self.file_path = file_path |
| 37 | |
| 38 | |
| 39 | class IntroducedSyntaxErrors(ISortError): |
no outgoing calls
no test coverage detected
searching dependent graphs…