From 1f88ff3af9c78f6f3104454dd41aaecbc60a64f8 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Fri, 15 Sep 2023 18:55:13 +0200 Subject: [PATCH] chore: increase verbosity of warnings --- flake8_isort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(