mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 18:56:53 +00:00
Cause system exit only for non-zero exit statuses in setuptools command
See https://github.com/pypa/setuptools/issues/850#issuecomment-265445007
This commit is contained in:
parent
348722d77b
commit
2bc78e62bc
1 changed files with 7 additions and 1 deletions
|
|
@ -94,4 +94,10 @@ class Flake8(setuptools.Command):
|
|||
self.flake8.report_statistics()
|
||||
self.flake8.report_benchmarks()
|
||||
self.flake8.formatter.stop()
|
||||
self.flake8.exit()
|
||||
try:
|
||||
self.flake8.exit()
|
||||
except SystemExit as e:
|
||||
# Cause system exit only if exit code is not zero (terminates
|
||||
# other possibly remaining/pending setuptools commands).
|
||||
if e.code:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue