From 6f483b6a6d472cb61c5cd0123a1f3e5e4eba6029 Mon Sep 17 00:00:00 2001 From: Tim Paine Date: Sat, 29 Jan 2022 17:55:59 -0500 Subject: [PATCH] Update flake8_black.py --- flake8_black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8_black.py b/flake8_black.py index 6b88faa..7b8a348 100644 --- a/flake8_black.py +++ b/flake8_black.py @@ -99,7 +99,7 @@ def _file_mode(self): # Unless using override, we look for pyproject.toml project_root = black.find_project_root( ("." if self.filename in self.STDIN_NAMES else self.filename,) - ) + )[0] path = project_root / "pyproject.toml" if path in black_config: