Compatibility with flake8>=5.0 (#2579)

The main() function now returns exit code instead of exiting on it's own
This commit is contained in:
Alexander Kukushkin
2023-03-02 09:16:17 +01:00
committed by GitHub
parent c985974ece
commit dff5537954
+1 -1
View File
@@ -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):