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

clever-crayon-70731

10/28/2022, 9:29 AM
Anyone here who uses Pants in conjunction with doctest? https://docs.python.org/3.9/library/doctest.html
Hmm maybe this could be my foray into Pants plugin development
👏 2
b

bitter-ability-32190

10/28/2022, 2:47 PM
There's also a GitHub issue, I believe
p

proud-dentist-22844

10/28/2022, 3:49 PM
I believe pytest can run doctest tests.
b

bitter-ability-32190

10/28/2022, 3:53 PM
It can! Although one issue is if you don't have tests for the code, it won't ever be tested!
So ideally, pants gathers those files for the sandbox as well if the flag is enablees
c

clever-crayon-70731

10/29/2022, 5:46 AM
Oh here it is https://github.com/pantsbuild/pants/issues/11227 Great to know there's some interest already.
9 Views