https://pantsbuild.org/ logo
#general
Title
# general
p

proud-dentist-22844

04/14/2021, 1:02 AM
How can I make pylint run in parallel with pants? It looks like it is running only one pylint job. I could add
-j
to args, but I think pants would do better at choosing the number of jobs.
h

hundreds-father-404

04/14/2021, 1:08 AM
Interesting question - indeed, Pants runs each linter in parallel, but the individual linters runs are not @witty-crayon-22786 thoughts if this is something Pants could/would want to automate? I imagine your thought would be that we should improve
--lint-per-file-caching
, which gives parallelization and fine grained caching (but has substantially worse cold performance last time I checked) In the meantime, yeah, I think using
-j
. Are you running Pylint with other linters?
w

witty-crayon-22786

04/14/2021, 1:14 AM
👍 1
p

proud-dentist-22844

04/14/2021, 1:14 AM
Yes. But black and flake8 finish on a fraction of the time that pylint takes.
1
w

witty-crayon-22786

04/14/2021, 1:14 AM
But yea, in the meantime we might want to expose an explicit option
h

hundreds-father-404

04/14/2021, 3:50 AM
It'd be great to figure out #9964. Jacob does have a point, Pylint is pretty dang painful - it's substantially slower than all other formatters in Toolchain's repo too
c

curved-television-6568

04/14/2021, 6:38 AM
On the note of pylint, I read this blog https://dmerej.info/blog/post/bye-bye-pylint/#turning-the-page and wonder if you agree? I feel he may have a valid point, that other linters and typecheckers may give just as good coverage as pylint when used together, and I too have experienced how much effort it is to make pylint happy (esp. when introducing to an existing code base where it has not been a guiding star from the start)
💯 1
5 Views