From 6710ca6969b7d9c4e8344acd0fe3d50b24adc8ec Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 14 Feb 2024 12:34:27 -0500 Subject: [PATCH] setup: Allow `pylint -j0` Signed-off-by: Cole Robinson --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4bf29f255..cd6cd83e6 100755 --- a/setup.py +++ b/setup.py @@ -360,7 +360,7 @@ class CheckPylint(setuptools.Command): self.jobs = None def finalize_options(self): - if self.jobs: + if self.jobs is not None: self.jobs = int(self.jobs) def run(self): @@ -414,7 +414,7 @@ class CheckPylint(setuptools.Command): "--rcfile", ".pylintrc", "--output-format=%s" % output_format, ] - if self.jobs: + if self.jobs is not None: pylint_opts += ["--jobs=%d" % self.jobs] pylint.lint.Run(lintfiles + pylint_opts)