bitter-ability-32190
11/18/2021, 8:31 PMbitter-ability-32190
11/18/2021, 8:34 PMbitter-ability-32190
11/18/2021, 8:35 PMclean-city-64472
11/18/2021, 8:46 PM--changed-since to reduce the scope of your lint?bitter-ability-32190
11/18/2021, 8:55 PMpylint transitively since it traverses the import hierarchy. So there's another penalty even if I am using --changed-since šclean-city-64472
11/18/2021, 8:57 PMlint and fmt that use --changed-since=main . These run in about 1s - for reasons you mention there is a small chance something wouldn't get caught until CI but we haven't practically seen it yet.witty-crayon-22786
11/18/2021, 9:08 PMAlso, IIRC youĀ shouldĀShouldĀ transitivelyĀ since it traverses the import hierarchy. So thereās another penalty even if I am usingĀpylint--changed-since
pylint maybe be in check with mypy? Performance is a bit worse, and the fact that it is transitive makes it potentially a better fit therewitty-crayon-22786
11/18/2021, 9:09 PMwitty-crayon-22786
11/18/2021, 9:10 PMbitter-ability-32190
11/18/2021, 9:10 PMbitter-ability-32190
11/18/2021, 9:12 PMpylint is funny because some it dances on the line. I suppose it depends on the semantics of check and lint really.
(Only lightly going to point out a tool with "lint" in the name being in "check" š )bitter-ability-32190
11/18/2021, 9:14 PMchanged-dependees=implicit (or similar)happy-kitchen-89482
11/18/2021, 9:16 PMwitty-crayon-22786
11/18/2021, 9:16 PM./pants --loop --changed-since=HEAD check fmt lint is my bread and butterhappy-kitchen-89482
11/18/2021, 9:17 PMwitty-crayon-22786
11/18/2021, 9:17 PMwitty-crayon-22786
11/18/2021, 9:18 PMbitter-ability-32190
11/18/2021, 9:28 PMpants will likely... blow your pants off? Hmm š¤hundreds-father-404
11/19/2021, 5:10 PM--changed-dependees=directbitter-ability-32190
11/19/2021, 6:10 PMhundreds-father-404
11/19/2021, 6:11 PMbitter-ability-32190
11/19/2021, 9:40 PM# a.py
A = NotImplemented
# b.py
from .a import A
# c.py
from .b import A
def foo():
raise A
$ pylint c.py
...
c.py:4: [E0702(raising-bad-type), foo] Raising NotImplementedType while only classes or instances are allowed
šfast-nail-55400
11/19/2021, 9:41 PMProcess for each file in the batch and put those in the cachefast-nail-55400
11/19/2021, 9:42 PMfast-nail-55400
11/19/2021, 9:43 PMbitter-ability-32190
11/19/2021, 9:50 PMpylint thing to a new thread)