flat-zoo-31952
02/01/2022, 5:14 PM./pants lint ::
with the flake8
and pylint
backends enabled, and it seemed to have run flake8 massively parallel, and pylint in just one job. Is this an intentional decision due to bugs in pylint?witty-crayon-22786
02/01/2022, 5:15 PMflat-zoo-31952
02/01/2022, 5:15 PMwitty-crayon-22786
02/01/2022, 5:16 PMflat-zoo-31952
02/01/2022, 5:18 PM--changed-dependees=transitive
call to pylintwitty-crayon-22786
02/01/2022, 5:19 PMpylint
in particular is insanely slow: like 10x of mypy
evenbitter-ability-32190
02/01/2022, 5:40 PMpylint
looks at source code contents to infer types, whereas mypy
has strict rules and uses annotationsflat-zoo-31952
02/01/2022, 5:41 PMbitter-ability-32190
02/01/2022, 5:41 PMbitter-ability-32190
02/01/2022, 5:42 PMmypy
under the hood) (mypy
only really lints "types", so it's not sufficient for all my linting needs)flat-zoo-31952
02/01/2022, 5:43 PMbitter-ability-32190
02/01/2022, 5:43 PMflat-zoo-31952
02/01/2022, 5:44 PMbitter-ability-32190
02/01/2022, 5:44 PMpylint
rules that mypy
has basically made impotent and turning them off. I can share findings here.
I would hope tossing those out would make it much speedier π€flat-zoo-31952
02/01/2022, 5:44 PMbitter-ability-32190
02/01/2022, 5:45 PMflat-zoo-31952
02/01/2022, 5:53 PMflat-zoo-31952
02/01/2022, 5:57 PMbitter-ability-32190
02/01/2022, 6:00 PMbitter-ability-32190
02/01/2022, 6:00 PMpylint
runs a bit more stomachable. I'll find the PRsbitter-ability-32190
02/01/2022, 6:01 PMflat-zoo-31952
02/01/2022, 6:26 PM./pants --changed-since=$CMP_BRANCH --changed-dependees=transitive list \
| xargs ./pants filter --target-type=python_source \
| sed -r 's,(^//|:[^:]+$),,g' \
| xargs pylint $PYLINT_OPTIONS
hundreds-father-404
02/01/2022, 6:48 PMbitter-ability-32190
02/03/2022, 9:28 PM# E1700 (yield-inside-async-function)
# E0102 (function-redefined) [no-redef]
# E0103 (not-in-loop)
# E0104 (return-outside-function)
# E0105 (yield-outside-function)
# E0107 (nonexistent-operator)
# E0108 (duplicate-argument-name)
# E0110 (abstract-class-instantiated)
# E0112 (too-many-star-expressions)
# E0113 (invalid-star-assignment-target)
# E0114 (star-needs-assignment-target)
# E0119 (misplaced-format-function) [attr-defined]
# W0111 (assign-to-new-keyword)
# W0124 (confusing-with-statement)
# W0143 (comparison-with-callable)
# W0199 (assert-on-tuple)
# E0202 (method-hidden)
# E0203 (access-member-before-definition)
# E0211 (no-method-argument)
# E0213 (no-self-argument)
# E0237 (assigning-non-slot)
# E0238 (invalid-slots)
# E0239 (inherit-non-class)
# E0240 (inconsistent-mro)
# E0241 (duplicate-bases)
# R0203 (no-staticmethod-decorator)
# R0206 (property-with-parameters)
# W0221 (arguments-differ)
# W0222 (signature-differs)
# E0702 (raising-bad-type)
# E0703 (bad-exception-context)
# E0710 (raising-non-exception)
# E0712 (catching-non-exception)
# W0711 (binary-op-exception)
# W0716 (wrong-exception-operation)
# E1507 (invalid-envvar-value)
# W1506 (bad-thread-instantiation)
# E1101 (no-member)
# E1102 (not-callable)
# E1111 (assignment-from-no-return)
# E1120 (no-value-for-parameter)
# E1121 (too-many-function-args)
# E1123 (unexpected-keyword-arg)
# E1124 (redundant-keyword-arg)
# E1125 (missing-kwoa)
# E1126 (invalid-sequence-index)
# E1127 (invalid-slice-index)
# E1128 (assignment-from-none)
# E1129 (not-context-manager)
# E1130 (invalid-unary-operand-type)
# E1131 (unsupported-binary-operation)
# E1132 (repeated-keyword)
# E1133 (not-an-iterable)
# E1134 (not-a-mapping)
# E1135 (unsupported-membership-test)
# E1136 (unsubscriptable-object)
# E1137 (unsupported-assignment-operation)
# E1138 (unsupported-delete-operation)
# E1139 (invalid-metaclass)
# E1140 (unhashable-dict-key)
# E1141 (dict-iter-missing-items)
# I1101 (c-extension-no-mem)
# W1113 (keyword-arg-before-vararg)
# W1114 (arguments-out-of-order)
# E0604 (invalid-all-object)
# E0611 (no-name-in-module)
# E0633 (unpacking-non-sequence)
# W0601 (global-variable-undefined)
# W0632 (unbalanced-tuple-unpacking)
bitter-ability-32190
02/03/2022, 9:29 PM# E0100 (init-is-generator)
# E0101 (return-in-init)
# E0301 (non-iterator-returned)
# W0236 (invalid-overridden-method)
# E1701 (not-async-context-manager) [attr-defined]
# E0302 (unexpected-special-method-signature)
hundreds-father-404
02/03/2022, 9:31 PMbitter-ability-32190
02/03/2022, 9:33 PMmypy
on it. Rinse Repeat.bitter-ability-32190
02/03/2022, 9:34 PMhundreds-father-404
02/03/2022, 9:34 PMbitter-ability-32190
02/03/2022, 9:39 PMbitter-ability-32190
02/03/2022, 9:55 PMpylint
from 5m18s
to 4m40s
. So not groundbreaking, but somethingbitter-ability-32190
02/03/2022, 9:55 PMblack