diff --git a/flake8_isort.py b/flake8_isort.py index cc2299b..d7435cd 100644 --- a/flake8_isort.py +++ b/flake8_isort.py @@ -93,7 +93,7 @@ def run(self): except isort.exceptions.FileSkipped: pass except isort.exceptions.ISortError as e: - warnings.warn(e) + warnings.warn(e, stacklevel=2) if isort_changed: outlines = output_stream.getvalue() diff_delta = ''.join(