Skip to content

Commit

Permalink
setup: Allow pylint -j0
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Robinson <[email protected]>
  • Loading branch information
crobinso committed Feb 14, 2024
1 parent 135cf17 commit 6710ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def initialize_options(self):
self.jobs = None

def finalize_options(self):
if self.jobs:
if self.jobs is not None:
self.jobs = int(self.jobs)

def run(self):
Expand Down Expand Up @@ -414,7 +414,7 @@ def run(self):
"--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)
Expand Down

0 comments on commit 6710ca6

Please sign in to comment.