From dff55379548b2ed66368a9f6d77e1398c67d2b64 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Thu, 2 Mar 2023 09:16:17 +0100 Subject: [PATCH] Compatibility with flake8>=5.0 (#2579) The main() function now returns exit code instead of exiting on it's own --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9ebdbe21..1c0d3b3b 100644 --- a/setup.py +++ b/setup.py @@ -94,7 +94,7 @@ class Flake8(_Command): from flake8.main.cli import main logging.getLogger().setLevel(logging.ERROR) - main(self.targets()) + raise SystemExit(main(self.targets())) class PyTest(_Command):